feat: privacy policy

This commit is contained in:
Nevo David 2024-06-04 13:14:03 +07:00
parent 8f7a687d31
commit 67d6776404
1 changed files with 6 additions and 0 deletions

View File

@ -105,6 +105,11 @@ export function RegisterAfter({
}
};
const rootDomain = useMemo(() => {
const url = new URL(process.env.frontendUrl!);
return url.protocol + '//' + url.host;
}, []);
return (
<FormProvider {...form}>
<form onSubmit={form.handleSubmit(onSubmit)}>
@ -150,6 +155,7 @@ export function RegisterAfter({
placeholder="Company"
/>
</div>
<div className="text-[12px]">By registering you agree to our <a href={`${rootDomain}/terms-of-service`}>Terms of Service</a> and <a href={`${rootDomain}/privacy policy`}>Privacy Policy</a></div>
<div className="text-center mt-6">
<div className="w-full flex">
<Button type="submit" className="flex-1" loading={loading}>