mirror of
https://github.com/movie-web/movie-web.git
synced 2024-12-24 19:11:49 +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) {
|
||||
return (
|
||||
<div className="relative my-4 max-w-[18rem]">
|
||||
<Listbox value={props.selectedItem} onChange={props.setSelectedItem}>
|
||||
{({ open }) => (
|
||||
@ -55,5 +56,6 @@ export function Dropdown(props: DropdownProps) {
|
||||
</>
|
||||
)}
|
||||
</Listbox>
|
||||
</div>;
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user