From f99a63bfa2efc73bc763dc81d17b7b4390e7a383 Mon Sep 17 00:00:00 2001 From: Greg Garnhart Date: Wed, 15 Jan 2025 14:43:44 -0500 Subject: [PATCH] refactor(calendar): update hardcoded date in card preview to use the current month + year --- apps/www/components/cards/calendar.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/www/components/cards/calendar.tsx b/apps/www/components/cards/calendar.tsx index 4496a355e2e..fc6ad131ba3 100644 --- a/apps/www/components/cards/calendar.tsx +++ b/apps/www/components/cards/calendar.tsx @@ -5,7 +5,8 @@ import { addDays } from "date-fns" import { Calendar } from "@/registry/new-york/ui/calendar" import { Card, CardContent } from "@/registry/new-york/ui/card" -const start = new Date(2023, 5, 5) +const now = new Date() +const start = new Date(now.getFullYear(), now.getMonth(), 5) export function CardsCalendar() { return (