Hard coded the website link because there are some problems with ENV variables in the frontend

This commit is contained in:
Tiago Ribeiro
2024-02-13 00:44:16 +00:00
parent 7ab67fdf15
commit 57116f50e8

View File

@@ -3,30 +3,24 @@ import Link from "next/link";
import Checkbox from "@/components/Low/Checkbox";
const useAcceptedTerms = () => {
const [acceptedTerms, setAcceptedTerms] = React.useState(false);
const [acceptedTerms, setAcceptedTerms] = React.useState(false);
const renderCheckbox = () => (
<Checkbox isChecked={acceptedTerms} onChange={setAcceptedTerms}>
I agree to the
<Link
href={`${process.env.NEXT_PUBLIC_WEBSITE_URL}/terms`}
className="text-blue-500"
>
{" "}
Terms and Conditions
</Link>{" "}
and
<Link
href={`${process.env.NEXT_PUBLIC_WEBSITE_URL}/privacy-policy`}
className="text-blue-500"
>
{" "}
Privacy Policy
</Link>
</Checkbox>
);
const renderCheckbox = () => (
<Checkbox isChecked={acceptedTerms} onChange={setAcceptedTerms}>
I agree to the
<Link href={`https://encoach.com/terms`} className="text-mti-purple-light">
{" "}
Terms and Conditions
</Link>{" "}
and
<Link href={`https://encoach.com/privacy-policy`} className="text-mti-purple-light">
{" "}
Privacy Policy
</Link>
</Checkbox>
);
return { acceptedTerms, renderCheckbox };
return {acceptedTerms, renderCheckbox};
};
export default useAcceptedTerms;