Skip to content

Commit

Permalink
Remove stories
Browse files Browse the repository at this point in the history
  • Loading branch information
yuanqing committed Oct 22, 2023
1 parent d6947a8 commit 1f193e9
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 68 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,31 +136,6 @@ export const FilledManyOptions = function () {
)
}

export const LongText = function () {
const [value, setValue] = useState<string>(Array(20).fill('foo').join(' '))
const options: Array<DropdownOption> = [
{ value: Array(20).fill('foo').join(' ') },
{ value: Array(20).fill('bar').join(' ') },
{ value: Array(20).fill('baz').join(' ') },
'-',
{ header: 'Header' },
{ value: Array(4).fill('qux').join(' ') }
]
function handleChange(event: JSX.TargetedEvent<HTMLInputElement>) {
const newValue = event.currentTarget.value
console.log(newValue)
setValue(newValue)
}
return (
<Dropdown
onChange={handleChange}
options={options}
value={value}
variant="border"
/>
)
}

export const Focused = function () {
const [value, setValue] = useState<string>('foo')
const options: Array<DropdownOption> = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,24 +109,6 @@ export const FilledManyOptions = function () {
return <Dropdown onChange={handleChange} options={options} value={value} />
}

export const LongText = function () {
const [value, setValue] = useState<string>(Array(20).fill('foo').join(' '))
const options: Array<DropdownOption> = [
{ value: Array(20).fill('foo').join(' ') },
{ value: Array(20).fill('bar').join(' ') },
{ value: Array(20).fill('baz').join(' ') },
'-',
{ header: 'Header' },
{ value: Array(4).fill('qux').join(' ') }
]
function handleChange(event: JSX.TargetedEvent<HTMLInputElement>) {
const newValue = event.currentTarget.value
console.log(newValue)
setValue(newValue)
}
return <Dropdown onChange={handleChange} options={options} value={value} />
}

export const Focused = function () {
const [value, setValue] = useState<string>('foo')
const options: Array<DropdownOption> = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,31 +136,6 @@ export const FilledManyOptions = function () {
)
}

export const LongText = function () {
const [value, setValue] = useState<string>(Array(20).fill('foo').join(' '))
const options: Array<DropdownOption> = [
{ value: Array(20).fill('foo').join(' ') },
{ value: Array(20).fill('bar').join(' ') },
{ value: Array(20).fill('baz').join(' ') },
'-',
{ header: 'Header' },
{ value: Array(4).fill('qux').join(' ') }
]
function handleChange(event: JSX.TargetedEvent<HTMLInputElement>) {
const newValue = event.currentTarget.value
console.log(newValue)
setValue(newValue)
}
return (
<Dropdown
onChange={handleChange}
options={options}
value={value}
variant="underline"
/>
)
}

export const Focused = function () {
const [value, setValue] = useState<string>('foo')
const options: Array<DropdownOption> = [
Expand Down

0 comments on commit 1f193e9

Please sign in to comment.