-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
'use client'; | ||
|
||
import React, { useState } from 'react'; | ||
// import FilterDropdown from '@/components/FilterDropdown'; | ||
import { PlantList } from '@/components/PlantList'; | ||
|
||
interface SeasonalPlantingGuideProps {} | ||
|
||
const SeasonalPlantingGuide = (props: SeasonalPlantingGuideProps) => { | ||
Check failure on line 9 in app/seasonal-planting-guide/page.tsx GitHub Actions / Run ESLint, Prettier, and TypeScript compiler
|
||
const growingSeasonOptions = ['Spring', 'Summer', 'Fall', 'Winter']; | ||
Check failure on line 10 in app/seasonal-planting-guide/page.tsx GitHub Actions / Run ESLint, Prettier, and TypeScript compiler
|
||
const harvestSeasonOptions = ['Spring', 'Summer', 'Fall', 'Winter']; | ||
Check failure on line 11 in app/seasonal-planting-guide/page.tsx GitHub Actions / Run ESLint, Prettier, and TypeScript compiler
|
||
const plantingTypeOptions = [ | ||
Check failure on line 12 in app/seasonal-planting-guide/page.tsx GitHub Actions / Run ESLint, Prettier, and TypeScript compiler
|
||
'Start Seeds Indoors', | ||
'Start Seeds Outdoors', | ||
'Plant Seedlings/Transplant Outdoors', | ||
]; | ||
|
||
const [growingSeason, setGrowingSeason] = useState<string>(''); | ||
Check failure on line 18 in app/seasonal-planting-guide/page.tsx GitHub Actions / Run ESLint, Prettier, and TypeScript compiler
|
||
const [harvestSeason, setHarvestSeason] = useState<string>(''); | ||
Check failure on line 19 in app/seasonal-planting-guide/page.tsx GitHub Actions / Run ESLint, Prettier, and TypeScript compiler
|
||
const [plantingType, setPlantingType] = useState<string>(''); | ||
Check failure on line 20 in app/seasonal-planting-guide/page.tsx GitHub Actions / Run ESLint, Prettier, and TypeScript compiler
|
||
|
||
return ( | ||
//hide filter dropdowns for now, will be done in another PR | ||
<div> | ||
{/* <FilterDropdown | ||
name="growingSeason" | ||
id="growingSeason" | ||
setStateAction={setGrowingSeason} | ||
options={growingSeasonOptions} | ||
placeholder="Growing Season" | ||
/> | ||
<FilterDropdown | ||
name="harvestSeason" | ||
id="harvestSeason" | ||
setStateAction={setHarvestSeason} | ||
options={harvestSeasonOptions} | ||
placeholder="Harvest Season" | ||
/> | ||
<FilterDropdown | ||
name="plantingType" | ||
id="plantingType" | ||
setStateAction={setPlantingType} | ||
options={plantingTypeOptions} | ||
placeholder="Planting Type" | ||
/> */} | ||
|
||
<PlantList | ||
growing_season={growingSeason} | ||
harvest_season={harvestSeason} | ||
planting_type={plantingType} | ||
/> | ||
</div> | ||
); | ||
}; | ||
|
||
export default SeasonalPlantingGuide; |