From b75055d0ce7a0f8e9ee111f9b2274a629ff1ea40 Mon Sep 17 00:00:00 2001 From: Rupaak Srinivas Date: Wed, 24 Jan 2024 12:41:11 +0530 Subject: [PATCH] link privacy-policy --- web/app/privacy-policy/page.tsx | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 web/app/privacy-policy/page.tsx diff --git a/web/app/privacy-policy/page.tsx b/web/app/privacy-policy/page.tsx new file mode 100644 index 0000000..3cb0f48 --- /dev/null +++ b/web/app/privacy-policy/page.tsx @@ -0,0 +1,25 @@ +"use client" +import React, { useEffect } from "react"; +import { NextPage } from "next"; +import { useRouter } from 'next/navigation' + +const PrivacyPolicyPage: NextPage = () => { + const router = useRouter(); + + const handleRedirect = () => { + router.push("/privacy-policy.html"); + }; + + useEffect(() => { + handleRedirect(); + // eslint-disable-next-line react-hooks/exhaustive-deps + }, []); + + return ( +
+ +
+ ); +}; + +export default PrivacyPolicyPage;