mirror of
https://github.com/movie-web/movie-web.git
synced 2024-12-25 07:11:50 +01:00
Update Dropdown.tsx
This commit is contained in:
parent
4846ec53b2
commit
459223a030
@ -15,6 +15,7 @@ interface DropdownProps {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function Dropdown(props: DropdownProps) {
|
export function Dropdown(props: DropdownProps) {
|
||||||
|
return (
|
||||||
<div className="relative my-4 max-w-[18rem]">
|
<div className="relative my-4 max-w-[18rem]">
|
||||||
<Listbox value={props.selectedItem} onChange={props.setSelectedItem}>
|
<Listbox value={props.selectedItem} onChange={props.setSelectedItem}>
|
||||||
{({ open }) => (
|
{({ open }) => (
|
||||||
@ -55,5 +56,6 @@ export function Dropdown(props: DropdownProps) {
|
|||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
</Listbox>
|
</Listbox>
|
||||||
</div>;
|
</div>
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user