diff --git a/app/seasonal-planting-guide/page.tsx b/app/seasonal-planting-guide/page.tsx index 35e37df..96cd133 100644 --- a/app/seasonal-planting-guide/page.tsx +++ b/app/seasonal-planting-guide/page.tsx @@ -4,20 +4,22 @@ import React, { useState } from 'react'; // import FilterDropdown from '@/components/FilterDropdown'; import { PlantList } from '@/components/PlantList'; -interface SeasonalPlantingGuideProps {} +// interface SeasonalPlantingGuideProps {} -const SeasonalPlantingGuide = (props: SeasonalPlantingGuideProps) => { - const growingSeasonOptions = ['Spring', 'Summer', 'Fall', 'Winter']; - const harvestSeasonOptions = ['Spring', 'Summer', 'Fall', 'Winter']; - const plantingTypeOptions = [ - 'Start Seeds Indoors', - 'Start Seeds Outdoors', - 'Plant Seedlings/Transplant Outdoors', - ]; +const SeasonalPlantingGuide = () => { + // hide this for now, will be used in the next PR for dropdown filters - const [growingSeason, setGrowingSeason] = useState(''); - const [harvestSeason, setHarvestSeason] = useState(''); - const [plantingType, setPlantingType] = useState(''); + // const growingSeasonOptions = ['Spring', 'Summer', 'Fall', 'Winter']; + // const harvestSeasonOptions = ['Spring', 'Summer', 'Fall', 'Winter']; + // const plantingTypeOptions = [ + // 'Start Seeds Indoors', + // 'Start Seeds Outdoors', + // 'Plant Seedlings/Transplant Outdoors', + // ]; + + // const [growingSeason, setGrowingSeason] = useState(''); + // const [harvestSeason, setHarvestSeason] = useState(''); + // const [plantingType, setPlantingType] = useState(''); return ( //hide filter dropdowns for now, will be done in another PR @@ -47,9 +49,9 @@ const SeasonalPlantingGuide = (props: SeasonalPlantingGuideProps) => { /> */} ); diff --git a/components/PlantList.tsx b/components/PlantList.tsx index 57d3abd..48e5ed4 100644 --- a/components/PlantList.tsx +++ b/components/PlantList.tsx @@ -2,13 +2,7 @@ import React, { useEffect, useState } from 'react'; import { getPlantSeasonality } from '@/api/supabase/queries/plantSeasonality'; import { Plant } from '@/types/schema'; -interface PlantListProps { - growing_season: string; - harvest_season: string; - planting_type: string; -} - -export const PlantList = (props: PlantListProps) => { +export const PlantList = () => { const [plants, setPlants] = useState([]); useEffect(() => {