Skip to content

Commit c84c0d1

Browse files
committed
build(website): add correct dependencies
1 parent 177b797 commit c84c0d1

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

apps/website/app/routes/_index.tsx

+4-6
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,7 @@ export const action = async ({ request }: ActionFunctionArgs) => {
139139
.run();
140140
};
141141

142-
const intentSchema = z.object({ intent: z.string() });
143-
144-
const emailSchema = z.object({ email: z.string().email() }).merge(intentSchema);
142+
const emailSchema = z.object({ email: z.string().email() });
145143

146144
const registerSchema = z
147145
.object({ otpCode: z.string().length(6) })
@@ -302,7 +300,7 @@ export default function Page() {
302300
<Form
303301
method="POST"
304302
className="flex gap-2 flex-none"
305-
action={withQuery(".", {
303+
action={withQuery(".?index", {
306304
intent: loaderData.query.email
307305
? "registerWithEmail"
308306
: "sendLoginCode",
@@ -348,7 +346,7 @@ export default function Page() {
348346
<p className="text-xs">OR</p>
349347
<Form
350348
method="POST"
351-
action={withQuery(".", { intent: "registerWithOidc" })}
349+
action={withQuery(".?index", { intent: "registerWithOidc" })}
352350
>
353351
<Button
354352
variant="outline"
@@ -440,7 +438,7 @@ export default function Page() {
440438
) : (
441439
<Form
442440
method="POST"
443-
action={withQuery(".", { intent: "contactSubmission" })}
441+
action={withQuery(".?index", { intent: "contactSubmission" })}
444442
className="flex flex-col items-center justify-center pt-12 gap-y-4 gap-x-4"
445443
>
446444
<HoneypotInputs />

apps/website/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
"sonner": "1.5.0",
5050
"tailwind-merge": "2.5.4",
5151
"tailwindcss-animate": "1.0.7",
52+
"tiny-invariant": "1.3.3",
5253
"ts-pattern": "5.5.0",
5354
"ufo": "1.5.4",
5455
"zod": "3.23.8",

yarn.lock

+1
Original file line numberDiff line numberDiff line change
@@ -6305,6 +6305,7 @@ __metadata:
63056305
tailwind-merge: "npm:2.5.4"
63066306
tailwindcss: "npm:3.4.14"
63076307
tailwindcss-animate: "npm:1.0.7"
6308+
tiny-invariant: "npm:1.3.3"
63086309
ts-pattern: "npm:5.5.0"
63096310
typescript: "npm:5.6.3"
63106311
typescript-remix-routes-plugin: "npm:1.0.1"

0 commit comments

Comments
 (0)