feat/signup-refactor
Sean Brydon 2023-10-25 10:15:43 +01:00
parent 93c662780b
commit ef4e4b2dcc
2 changed files with 9 additions and 11 deletions

View File

@ -2,7 +2,6 @@ import { zodResolver } from "@hookform/resolvers/zod";
import { CalendarHeart, Info, Link2, ShieldCheckIcon, StarIcon, Users } from "lucide-react"; import { CalendarHeart, Info, Link2, ShieldCheckIcon, StarIcon, Users } from "lucide-react";
import type { GetServerSidePropsContext } from "next"; import type { GetServerSidePropsContext } from "next";
import { signIn } from "next-auth/react"; import { signIn } from "next-auth/react";
import { Trans } from "next-i18next";
import Link from "next/link"; import Link from "next/link";
import { useRouter, useSearchParams } from "next/navigation"; import { useRouter, useSearchParams } from "next/navigation";
import type { CSSProperties } from "react"; import type { CSSProperties } from "react";
@ -372,15 +371,14 @@ export default function Signup({ prepopulateFormValues, token, orgSlug }: Signup
{t("already_have_account")} {t("already_have_account")}
</Link> </Link>
<div className="text-subtle"> <div className="text-subtle">
<Trans i18nKey="signing_up_terms" as="p"> By signing up, you agree to our{" "}
By signing up, you agree to our <Link className="text-emphasis hover:underline" href={`${WEBSITE_URL}/terms`}>
<Link className="text-emphasis hover:underline" href={`${WEBSITE_URL}/terms`}> Terms of Service{" "}
Terms of Service </Link>
</Link> <span>and</span>{" "}
<Link className="text-emphasis hover:underline" href={`${WEBSITE_URL}/privacy`}> <Link className="text-emphasis hover:underline" href={`${WEBSITE_URL}/privacy`}>
Privacy Policy Privacy Policy.
</Link> </Link>
</Trans>
</div> </div>
</div> </div>
</div> </div>

View File

@ -67,7 +67,7 @@
"cannot_repackage_codebase": "You can not repackage or sell the codebase", "cannot_repackage_codebase": "You can not repackage or sell the codebase",
"acquire_license": "Acquire a commercial license to remove these terms by emailing", "acquire_license": "Acquire a commercial license to remove these terms by emailing",
"terms_summary": "Summary of terms", "terms_summary": "Summary of terms",
"signing_up_terms":"By signing up, you agree to our <2>Terms of Service</2> and <4>Privacy Policy</4>.", "signing_up_terms":"By signing up, you agree to our <2>Terms of Service</2> and <3>Privacy Policy</3>.",
"open_env": "Open .env and agree to our License", "open_env": "Open .env and agree to our License",
"env_changed": "I've changed my .env", "env_changed": "I've changed my .env",
"accept_license": "Accept License", "accept_license": "Accept License",