Skip to content

Commit

Permalink
Added Privacy Policy and Terms & Conditions Links
Browse files Browse the repository at this point in the history
  • Loading branch information
atrincas committed Jan 8, 2025
1 parent 247ff18 commit efd07e7
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 4 deletions.
28 changes: 25 additions & 3 deletions client/src/containers/auth/signup/form/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ import { useRouter } from "next/navigation";
import { zodResolver } from "@hookform/resolvers/zod";
import { z } from "zod";

import { PRIVACY_POLICY_URL } from "@/lib/constants";
import { TERMS_AND_CONDITIONS_URL } from "@/lib/constants";

import { Button } from "@/components/ui/button";
import { Checkbox } from "@/components/ui/checkbox";
import {
Expand Down Expand Up @@ -129,10 +132,29 @@ const TokenSignUpForm: FC = () => {
/>
<Label
htmlFor={field.name}
className="text-xs text-muted-foreground"
className="text-sm font-normal text-foreground"
>
I agree with the terms and conditions and privacy policy
of the Blue Carbon Cost Tool platform.
I agree with the&nbsp;
<Button
variant="link"
className="h-auto p-0 text-sm underline underline-offset-auto"
asChild
>
<Link href={TERMS_AND_CONDITIONS_URL} target="_blank">
terms and conditions
</Link>
</Button>
&nbsp;and&nbsp;
<Button
variant="link"
className="h-auto p-0 text-sm underline underline-offset-auto"
asChild
>
<Link href={PRIVACY_POLICY_URL} target="_blank">
privacy policy
</Link>
</Button>
&nbsp;of the Blue Carbon Cost Tool platform.
</Label>
</div>
</FormControl>
Expand Down
14 changes: 13 additions & 1 deletion client/src/containers/projects/new/sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import { ACTIVITY } from "@shared/entities/activity.enum";
import { useAtomValue } from "jotai/index";
import { InfoIcon } from "lucide-react";

import { PRIVACY_POLICY_URL } from "@/lib/constants";

import { useFormValues } from "@/containers/projects/form";
import { formStepAtom } from "@/containers/projects/store";

Expand Down Expand Up @@ -87,7 +89,17 @@ export default function ProjectSidebar() {
private and accessible only to you
</span>
. For more details on our commitment to data privacy, please review
our privacy policy.
our{" "}
<Button
variant="link"
className="h-auto p-0 text-base underline underline-offset-auto"
asChild
>
<Link href={PRIVACY_POLICY_URL} target="_blank">
privacy policy
</Link>
</Button>
.
</p>
</Card>
</aside>
Expand Down
5 changes: 5 additions & 0 deletions client/src/lib/constants.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export const PRIVACY_POLICY_URL =
"https://www.nature.org/en-us/about-us/who-we-are/accountability/privacy-policy/";

export const TERMS_AND_CONDITIONS_URL =
"https://conservationgateway.org/Pages/Terms-of-Use.aspx";

0 comments on commit efd07e7

Please sign in to comment.