refactor: update company registration flow and email handling; switch to zod for validation

This commit is contained in:
Danel Kungla
2025-06-17 13:45:46 +03:00
parent fe44030190
commit 291919c2d1
18 changed files with 274 additions and 87 deletions

View File

@@ -1,10 +1,14 @@
import { MedReportTitle } from "@/components/med-report-title";
import Image from "next/image";
import Link from "next/link";
import Image from 'next/image';
import Link from 'next/link';
import { MedReportTitle } from '@/components/med-report-title';
import { Button } from '@/packages/ui/src/shadcn/button';
import { Trans } from '@kit/ui/trans';
export default function CompanyRegistrationSuccess() {
return (
<div className="pt-2 px-16 pb-12 border rounded-3xl border-border">
<div className="border-border rounded-3xl border px-16 pt-4 pb-12">
<MedReportTitle />
<div className="flex flex-col items-center px-4">
<Image
@@ -14,11 +18,17 @@ export default function CompanyRegistrationSuccess() {
width={326}
height={195}
/>
<h1 className="pb-2">Päring edukalt saadetud!</h1>
<p className=" text-muted-foreground text-sm">Saadame teile esimesel võimalusel vastuse</p>
<h1 className="pb-2">
<Trans i18nKey={'account:requestCompanyAccount:successTitle'} />
</h1>
<p className="text-muted-foreground text-sm">
<Trans i18nKey={'account:requestCompanyAccount:successDescription'} />
</p>
</div>
<Button className="w-full mt-8">
<Link href="/">Tagasi kodulehele</Link>
<Button className="mt-8 w-full">
<Link href="/">
<Trans i18nKey={'account:requestCompanyAccount:successButton'} />
</Link>
</Button>
</div>
);