Skip to content

Commit

Permalink
build(website): add correct dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
IgnisDa committed Oct 24, 2024
1 parent 177b797 commit c84c0d1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
10 changes: 4 additions & 6 deletions apps/website/app/routes/_index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,7 @@ export const action = async ({ request }: ActionFunctionArgs) => {
.run();
};

const intentSchema = z.object({ intent: z.string() });

const emailSchema = z.object({ email: z.string().email() }).merge(intentSchema);
const emailSchema = z.object({ email: z.string().email() });

const registerSchema = z
.object({ otpCode: z.string().length(6) })
Expand Down Expand Up @@ -302,7 +300,7 @@ export default function Page() {
<Form
method="POST"
className="flex gap-2 flex-none"
action={withQuery(".", {
action={withQuery(".?index", {
intent: loaderData.query.email
? "registerWithEmail"
: "sendLoginCode",
Expand Down Expand Up @@ -348,7 +346,7 @@ export default function Page() {
<p className="text-xs">OR</p>
<Form
method="POST"
action={withQuery(".", { intent: "registerWithOidc" })}
action={withQuery(".?index", { intent: "registerWithOidc" })}
>
<Button
variant="outline"
Expand Down Expand Up @@ -440,7 +438,7 @@ export default function Page() {
) : (
<Form
method="POST"
action={withQuery(".", { intent: "contactSubmission" })}
action={withQuery(".?index", { intent: "contactSubmission" })}
className="flex flex-col items-center justify-center pt-12 gap-y-4 gap-x-4"
>
<HoneypotInputs />
Expand Down
1 change: 1 addition & 0 deletions apps/website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"sonner": "1.5.0",
"tailwind-merge": "2.5.4",
"tailwindcss-animate": "1.0.7",
"tiny-invariant": "1.3.3",
"ts-pattern": "5.5.0",
"ufo": "1.5.4",
"zod": "3.23.8",
Expand Down
1 change: 1 addition & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6305,6 +6305,7 @@ __metadata:
tailwind-merge: "npm:2.5.4"
tailwindcss: "npm:3.4.14"
tailwindcss-animate: "npm:1.0.7"
tiny-invariant: "npm:1.3.3"
ts-pattern: "npm:5.5.0"
typescript: "npm:5.6.3"
typescript-remix-routes-plugin: "npm:1.0.1"
Expand Down

0 comments on commit c84c0d1

Please sign in to comment.