From 5b459622d0b08bdc744c2f74dbea98b1e3e89134 Mon Sep 17 00:00:00 2001 From: Kalle <38327916+Sendouc@users.noreply.github.com> Date: Fri, 29 Jul 2022 21:24:45 +0300 Subject: [PATCH] Add new events page initial --- app/components/Label.tsx | 12 +++++-- app/constants.ts | 1 + app/routes/calendar/index.tsx | 7 ++++ app/routes/calendar/new.tsx | 57 +++++++++++++++++++++++++++++++ app/routes/u.$identifier/edit.tsx | 1 - app/styles/calendar.css | 5 +++ app/styles/common.css | 3 ++ app/styles/u-edit.css | 6 ---- 8 files changed, 83 insertions(+), 9 deletions(-) create mode 100644 app/routes/calendar/new.tsx diff --git a/app/components/Label.tsx b/app/components/Label.tsx index dcac385ca..0f420d896 100644 --- a/app/components/Label.tsx +++ b/app/components/Label.tsx @@ -11,12 +11,20 @@ type LabelProps = Pick< current: number; max: number; }; + required?: boolean; }; -export function Label({ valueLimits, children, htmlFor }: LabelProps) { +export function Label({ + valueLimits, + required, + children, + htmlFor, +}: LabelProps) { return (