({
hourIndex,
setHourIndex,
className,
}: {
hourIndex: number;
setHourIndex: (index: number) => void;
className?: DropdownClassName;
})
| 32 | const HourOptions = Hours.map((item) => item.label); |
| 33 | |
| 34 | export const HourDropdown = ({ |
| 35 | hourIndex, |
| 36 | setHourIndex, |
| 37 | className, |
| 38 | }: { |
| 39 | hourIndex: number; |
| 40 | setHourIndex: (index: number) => void; |
| 41 | className?: DropdownClassName; |
| 42 | }): ReactElement => { |
| 43 | return ( |
| 44 | <Dropdown |
| 45 | data-testid="hour-dropdown" |
| 46 | className={className} |
| 47 | selectedIndex={hourIndex} |
| 48 | options={HourOptions} |
| 49 | onChange={(_, index) => setHourIndex(index)} |
| 50 | scrollable |
| 51 | /> |
| 52 | ); |
| 53 | }; |
nothing calls this directly
no outgoing calls
no test coverage detected