Skip to content

Commit

Permalink
uncomment code and add disabled to view-plants
Browse files Browse the repository at this point in the history
  • Loading branch information
kylezryr committed Nov 25, 2024
1 parent 0489897 commit 870cb6f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/seasonal-planting-guide/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ export default function SeasonalPlantingGuide() {
};

useEffect(() => {
// if (profileReady && profileData) {
// setSelectedUsState(profileData.us_state);
// }
if (profileReady && profileData) {
setSelectedUsState(profileData.us_state);
}
}, [profileData, profileReady]);

return (
Expand Down
3 changes: 3 additions & 0 deletions app/view-plants/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -160,18 +160,21 @@ export default function Page() {
setStateAction={setSelectedDifficulty}
options={difficultyOptions}
placeholder="Difficulty Level"
disabled={false}
/>
<FilterDropdownMultiple
value={selectedSunlight}
setStateAction={setSelectedSunlight}
options={sunlightOptions}
placeholder="Sunlight"
disabled={false}
/>
<FilterDropdownMultiple
value={selectedGrowingSeason}
setStateAction={setSelectedGrowingSeason}
options={growingSeasonOptions}
placeholder="Growing Season"
disabled={false}
/>

<button onClick={clearFilters}>Clear filters</button>
Expand Down

0 comments on commit 870cb6f

Please sign in to comment.