Skip to content

Commit

Permalink
fix es-lint errors (unused variables)
Browse files Browse the repository at this point in the history
  • Loading branch information
kylezryr committed Oct 20, 2024
1 parent ec6060f commit 8f1630b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 22 deletions.
32 changes: 17 additions & 15 deletions app/seasonal-planting-guide/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<string>('');
const [harvestSeason, setHarvestSeason] = useState<string>('');
const [plantingType, setPlantingType] = useState<string>('');
// 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<string>('');
// const [harvestSeason, setHarvestSeason] = useState<string>('');
// const [plantingType, setPlantingType] = useState<string>('');

return (
//hide filter dropdowns for now, will be done in another PR
Expand Down Expand Up @@ -47,9 +49,9 @@ const SeasonalPlantingGuide = (props: SeasonalPlantingGuideProps) => {
/> */}

<PlantList
growing_season={growingSeason}
harvest_season={harvestSeason}
planting_type={plantingType}
// growing_season={growingSeason}
// harvest_season={harvestSeason}
// planting_type={plantingType}
/>
</div>
);
Expand Down
8 changes: 1 addition & 7 deletions components/PlantList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<Plant[]>([]);

useEffect(() => {
Expand Down

0 comments on commit 8f1630b

Please sign in to comment.