From 80bf4ffb41d83ee10081b7d941430ab4a7c2487b Mon Sep 17 00:00:00 2001 From: Diego Alzate Date: Wed, 7 Aug 2024 14:53:53 +0100 Subject: [PATCH] rename vote items to vote options --- packages/berlin/src/components/cycles/Cycles.tsx | 6 ------ packages/berlin/src/pages/Cycle.tsx | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/packages/berlin/src/components/cycles/Cycles.tsx b/packages/berlin/src/components/cycles/Cycles.tsx index 2da49123..b132d0f7 100644 --- a/packages/berlin/src/components/cycles/Cycles.tsx +++ b/packages/berlin/src/components/cycles/Cycles.tsx @@ -17,11 +17,6 @@ type CyclesProps = { function Cycles({ cycles, eventId, fallback }: CyclesProps) { const navigate = useNavigate(); - const formatDate = (date: string) => { - const eventEndDate = new Date(date); - return new Intl.DateTimeFormat('en-US', { month: 'long', day: 'numeric' }).format(eventEndDate); - }; - const handleCycleClick = (cycleId: string) => { navigate(`/events/${eventId}/cycles/${cycleId}`); }; @@ -36,7 +31,6 @@ function Cycles({ cycles, eventId, fallback }: CyclesProps) { onClick={() => handleCycleClick(cycle.id)} > {cycle?.questions[0]?.title} - {formatDate(cycle.endAt)} )) ) : ( diff --git a/packages/berlin/src/pages/Cycle.tsx b/packages/berlin/src/pages/Cycle.tsx index 45b9b76f..94d0de0b 100644 --- a/packages/berlin/src/pages/Cycle.tsx +++ b/packages/berlin/src/pages/Cycle.tsx @@ -326,7 +326,7 @@ function Cycle() { {currentCycle?.options.length ? (
- Vote items + Vote options
Sort