From 459223a030a1f60302fc972adf47ab64d2286958 Mon Sep 17 00:00:00 2001 From: James Hawkins Date: Sun, 18 Dec 2022 19:28:58 +0000 Subject: [PATCH] Update Dropdown.tsx --- src/components/Dropdown.tsx | 84 +++++++++++++++++++------------------ 1 file changed, 43 insertions(+), 41 deletions(-) diff --git a/src/components/Dropdown.tsx b/src/components/Dropdown.tsx index 9ebef561..a73ad138 100644 --- a/src/components/Dropdown.tsx +++ b/src/components/Dropdown.tsx @@ -15,45 +15,47 @@ interface DropdownProps { } export function Dropdown(props: DropdownProps) { -
- - {({ open }) => ( - <> - - {props.selectedItem.name} - - - - - - - {props.options.map((opt) => ( - - `relative cursor-default select-none py-2 pl-10 pr-4 ${ - active ? "bg-denim-400 text-bink-700" : "text-white" - }` - } - key={opt.id} - value={opt} - > - {opt.name} - - ))} - - - - )} - -
; + return ( +
+ + {({ open }) => ( + <> + + {props.selectedItem.name} + + + + + + + {props.options.map((opt) => ( + + `relative cursor-default select-none py-2 pl-10 pr-4 ${ + active ? "bg-denim-400 text-bink-700" : "text-white" + }` + } + key={opt.id} + value={opt} + > + {opt.name} + + ))} + + + + )} + +
+ ) }