Skip to content

Commit

Permalink
changed state buttons to dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
kylezryr committed Nov 4, 2024
1 parent 52ad5fc commit 7be66e3
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions app/seasonal-planting-guide/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,14 @@ const SeasonalPlantingGuide = () => {
<>
<p>Please select a US state to view planting information.</p>
<StateOptionsContainer>
{usStateOptions.map(state => (
<button key={state} onClick={() => setSelectedUsState(state)}>
{state}
</button>
))}
<FilterDropdownSingle
name="usState"
id="usState"
value={selectedUsState}
setStateAction={setSelectedUsState}
placeholder="US State"
options={usStateOptions}
/>
</StateOptionsContainer>
</>
) : (
Expand Down

0 comments on commit 7be66e3

Please sign in to comment.