From 10cf6491892317483373a0714d29307e03cd247b Mon Sep 17 00:00:00 2001 From: Alex van Andel Date: Fri, 18 Feb 2022 21:52:16 +0100 Subject: [PATCH] Applied stash to newly merged --- .vscode/settings.json | 3 - apps/web/components/Shell.tsx | 4 +- apps/web/components/availability/Schedule.tsx | 2 +- apps/web/components/ui/Alert.tsx | 10 ++- apps/web/components/ui/EditableHeading.tsx | 33 +++++++++ .../{[availability].tsx => [schedule].tsx} | 72 +++++++++++++------ apps/web/pages/availability/index.tsx | 63 +++++++++++++++- apps/web/pages/event-types/[type].tsx | 67 +++++++++++------ apps/web/public/static/locales/en/common.json | 3 +- apps/web/public/static/locales/nl/common.json | 5 +- apps/web/server/routers/viewer.tsx | 40 +++++++++++ packages/lib/availability.ts | 4 +- packages/prisma/zod/availability.ts | 6 +- packages/prisma/zod/eventtypeCustom.ts | 17 ----- packages/prisma/zod/schedule.ts | 19 ++--- packages/prisma/zod/user.ts | 10 +-- yarn.lock | 66 ++++++++++++++--- 17 files changed, 319 insertions(+), 105 deletions(-) create mode 100644 apps/web/components/ui/EditableHeading.tsx rename apps/web/pages/availability/{[availability].tsx => [schedule].tsx} (57%) delete mode 100644 packages/prisma/zod/eventtypeCustom.ts diff --git a/.vscode/settings.json b/.vscode/settings.json index b5e0d7593a..1cc668e2fc 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,11 +1,8 @@ { "typescript.tsdk": "node_modules/typescript/lib", - "editor.formatOnSave": true, - // Auto-fix issues with ESLint when you save code changes "editor.codeActionsOnSave": { "source.fixAll.eslint": true }, - "eslint.run": "onSave", "typescript.preferences.importModuleSpecifier": "non-relative", "spellright.language": ["en"], "spellright.documentTypes": ["markdown"] diff --git a/apps/web/components/Shell.tsx b/apps/web/components/Shell.tsx index 9d6b211e89..6164d67c00 100644 --- a/apps/web/components/Shell.tsx +++ b/apps/web/components/Shell.tsx @@ -299,9 +299,9 @@ export default function Shell(props: { )} -
+
{props.HeadingLeftIcon &&
{props.HeadingLeftIcon}
} -
+

{props.heading}

diff --git a/apps/web/components/availability/Schedule.tsx b/apps/web/components/availability/Schedule.tsx index 033704d4e9..df15f6dea5 100644 --- a/apps/web/components/availability/Schedule.tsx +++ b/apps/web/components/availability/Schedule.tsx @@ -139,7 +139,7 @@ const ScheduleBlock = ({ name, day, weekday }: ScheduleBlockProps) => { }; return ( -
+