From fb2fa1184ab87cfb19636fcccc3ab68932e08775 Mon Sep 17 00:00:00 2001 From: Catherine Tan Date: Mon, 23 Dec 2024 13:48:11 -0800 Subject: [PATCH] use seasonColorKey in planting timeline --- app/seasonal-planting-guide/page.tsx | 2 ++ components/PlantCalendarRow/index.tsx | 5 +---- components/SeasonColorKey/index.tsx | 15 +++++++++------ 3 files changed, 12 insertions(+), 10 deletions(-) diff --git a/app/seasonal-planting-guide/page.tsx b/app/seasonal-planting-guide/page.tsx index e59149d..abefd1b 100644 --- a/app/seasonal-planting-guide/page.tsx +++ b/app/seasonal-planting-guide/page.tsx @@ -5,6 +5,7 @@ import FilterDropdownMultiple from '@/components/FilterDropdownMultiple'; import FilterDropdownSingle from '@/components/FilterDropdownSingle'; import { PlantCalendarList } from '@/components/PlantCalendarList'; import SearchBar from '@/components/SearchBar'; +import SeasonColorKey from '@/components/SeasonColorKey'; import COLORS from '@/styles/colors'; import { Box } from '@/styles/containers'; import { H1, H3 } from '@/styles/text'; @@ -113,6 +114,7 @@ export default function SeasonalPlantingGuide() { ) : ( + {singleDisplay && ( <> - - - + )} diff --git a/components/SeasonColorKey/index.tsx b/components/SeasonColorKey/index.tsx index 1e66cca..80accfe 100644 --- a/components/SeasonColorKey/index.tsx +++ b/components/SeasonColorKey/index.tsx @@ -1,5 +1,6 @@ import React from 'react'; import COLORS from '@/styles/colors'; +import { Flex } from '@/styles/containers'; import { P3 } from '@/styles/text'; import { ColorCell, @@ -18,11 +19,13 @@ function ColorKeyItem({ label, color }: { label: string; color: string }) { export default function SeasonColorKey() { return ( - - - - - - + + + + + + + + ); }