diff --git a/app/routes/OrganizationSignUpPage.tsx b/app/routes/OrganizationSignUpPage.tsx index 72c10ad8..d676fa70 100644 --- a/app/routes/OrganizationSignUpPage.tsx +++ b/app/routes/OrganizationSignUpPage.tsx @@ -2,6 +2,8 @@ import { MetaFunction, ActionFunction, json } from "@remix-run/node"; import { Link, Form, useActionData } from "@remix-run/react"; import { useState } from "react"; import { Button } from "~/components/ui/button"; +import { Label } from "~/components/ui/label"; +import { Input } from "~/components/ui/input"; // Define the types for the form fields interface FormData { @@ -39,10 +41,8 @@ export const action: ActionFunction = async ({ request }) => { return json({ errors }, { status: 400 }); } - console.log(data); - // Process the valid data (e.g., save to database) - // ... + return json({ success: true }); }; @@ -128,13 +128,13 @@ export default function Signup() { <>
-

Create Organisation Account

+

Create Organisation Account

Sign up

Create an account to get started with us.

- - Company's Name + {clientErrors.companyName || actionData?.errors?.companyName}

}
- - Company's Email Address +
- +
- + {clientErrors.state || actionData?.errors?.state}

}
- - Address + {clientErrors.address || actionData?.errors?.address}

}
- +