From 4be260d95441935819590efe111f6e5acbec45e6 Mon Sep 17 00:00:00 2001 From: Xevion Date: Wed, 15 Nov 2023 21:01:14 -0600 Subject: [PATCH] Fix isCurrent text & logic with new isTimeMatched function --- src/components/ConfigurationList.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/components/ConfigurationList.tsx b/src/components/ConfigurationList.tsx index e4e6379..725c0c0 100644 --- a/src/components/ConfigurationList.tsx +++ b/src/components/ConfigurationList.tsx @@ -4,7 +4,8 @@ import { type Configuration, type DayEnum, numberAsDay, - ParsedTime + ParsedTime, + isTimeMatched } from '@/timing'; import clsx from 'clsx'; @@ -87,7 +88,7 @@ const ConfigurationItem: FunctionComponent<{ : 'text-yellow-900 bg-yellow-500/80' )} > - Not Current + {isCurrent ? 'Current' : 'Not Current'}

@@ -131,7 +132,7 @@ const ConfigurationList: FunctionComponent = ({ {configs.times.map((config, index) => (