Hard coded the website link because there are some problems with ENV variables in the frontend
This commit is contained in:
@@ -3,30 +3,24 @@ import Link from "next/link";
|
|||||||
import Checkbox from "@/components/Low/Checkbox";
|
import Checkbox from "@/components/Low/Checkbox";
|
||||||
|
|
||||||
const useAcceptedTerms = () => {
|
const useAcceptedTerms = () => {
|
||||||
const [acceptedTerms, setAcceptedTerms] = React.useState(false);
|
const [acceptedTerms, setAcceptedTerms] = React.useState(false);
|
||||||
|
|
||||||
const renderCheckbox = () => (
|
const renderCheckbox = () => (
|
||||||
<Checkbox isChecked={acceptedTerms} onChange={setAcceptedTerms}>
|
<Checkbox isChecked={acceptedTerms} onChange={setAcceptedTerms}>
|
||||||
I agree to the
|
I agree to the
|
||||||
<Link
|
<Link href={`https://encoach.com/terms`} className="text-mti-purple-light">
|
||||||
href={`${process.env.NEXT_PUBLIC_WEBSITE_URL}/terms`}
|
{" "}
|
||||||
className="text-blue-500"
|
Terms and Conditions
|
||||||
>
|
</Link>{" "}
|
||||||
{" "}
|
and
|
||||||
Terms and Conditions
|
<Link href={`https://encoach.com/privacy-policy`} className="text-mti-purple-light">
|
||||||
</Link>{" "}
|
{" "}
|
||||||
and
|
Privacy Policy
|
||||||
<Link
|
</Link>
|
||||||
href={`${process.env.NEXT_PUBLIC_WEBSITE_URL}/privacy-policy`}
|
</Checkbox>
|
||||||
className="text-blue-500"
|
);
|
||||||
>
|
|
||||||
{" "}
|
|
||||||
Privacy Policy
|
|
||||||
</Link>
|
|
||||||
</Checkbox>
|
|
||||||
);
|
|
||||||
|
|
||||||
return { acceptedTerms, renderCheckbox };
|
return {acceptedTerms, renderCheckbox};
|
||||||
};
|
};
|
||||||
|
|
||||||
export default useAcceptedTerms;
|
export default useAcceptedTerms;
|
||||||
|
|||||||
Reference in New Issue
Block a user