From ec402fc38ce79303e1facbbf0918684c58db4c4a Mon Sep 17 00:00:00 2001 From: Juan Di Toro Date: Thu, 7 Mar 2024 15:04:59 +0100 Subject: [PATCH] feat: wiring of the authentication pages --- app/components/forms.tsx | 54 +- app/data/auth-provider.ts | 36 + app/routes/_index.tsx | 94 +- app/routes/login.tsx | 179 + app/routes/reset-password.tsx | 92 + app/routes/sign-up.tsx | 114 +- app/tailwind.css | 4 +- package-lock.json | 7677 ++++++++++++++++++++++++++++++--- package.json | 9 +- vite.config.ts | 1 - 10 files changed, 7554 insertions(+), 706 deletions(-) create mode 100644 app/data/auth-provider.ts create mode 100644 app/routes/login.tsx create mode 100644 app/routes/reset-password.tsx diff --git a/app/components/forms.tsx b/app/components/forms.tsx index 55ecaee..c79eeec 100644 --- a/app/components/forms.tsx +++ b/app/components/forms.tsx @@ -64,34 +64,36 @@ export const FieldCheckbox = ({ const id = inputProps.id ?? fallbackId const errorId = errors?.length ? `${id}-error` : undefined return ( -
- { - input.change(state.valueOf() ? checkedValue : "") - inputProps.onCheckedChange?.(state) - }} - onFocus={(event) => { - input.focus() - inputProps.onFocus?.(event) - }} - onBlur={(event) => { - input.blur() - inputProps.onBlur?.(event) - }} - type="button" - /> -
+ ) } @@ -108,7 +110,7 @@ export function ErrorList({ return (