Browse Source

Update Dropdown.tsx

pull/110/head
James Hawkins 3 years ago committed by GitHub
parent
commit
459223a030
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/components/Dropdown.tsx

4
src/components/Dropdown.tsx

@ -15,6 +15,7 @@ interface DropdownProps { @@ -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) { @@ -55,5 +56,6 @@ export function Dropdown(props: DropdownProps) {
</>
)}
</Listbox>
</div>;
</div>
)
}

Loading…
Cancel
Save