From 1da04edc2d7cae0651c15c70b8a9f263426b9a1e Mon Sep 17 00:00:00 2001 From: Kalle <38327916+Sendouc@users.noreply.github.com> Date: Sat, 30 Jul 2022 22:18:27 +0300 Subject: [PATCH] Calendar new page can edit event --- TODO.md | 2 + app/components/Input.tsx | 9 +- app/db/models/calendar.server.ts | 57 ++++++++++- app/routes/calendar/new.tsx | 156 ++++++++++++++++++++++--------- 4 files changed, 179 insertions(+), 45 deletions(-) diff --git a/TODO.md b/TODO.md index 458a54ab9..fe2e46818 100644 --- a/TODO.md +++ b/TODO.md @@ -20,6 +20,8 @@ Calendar ## Other +- [ ] Tags selector can remove +- [ ] Calendar new title - [ ] Sort tags so that they are always in same order - [x] Maybe make bracket URL mandatory? - [ ] components render twice on state change? diff --git a/app/components/Input.tsx b/app/components/Input.tsx index 87faaf30b..d2a7c6a9d 100644 --- a/app/components/Input.tsx +++ b/app/components/Input.tsx @@ -5,18 +5,25 @@ export function Input({ className, minLength, maxLength, + defaultValue, leftAddon, }: { name: string; className?: string; minLength?: number; maxLength?: number; + defaultValue?: string; leftAddon?: string; }) { return (