Skip to content

Commit

Permalink
link privacy-policy
Browse files Browse the repository at this point in the history
  • Loading branch information
RupaakSrinivas authored Jan 24, 2024
1 parent b8ea134 commit b75055d
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions web/app/privacy-policy/page.tsx
Original file line number Diff line number Diff line change
@@ -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 (
<div>
<button onClick={handleRedirect}>Go to Privacy Policy</button>
</div>
);
};

export default PrivacyPolicyPage;

0 comments on commit b75055d

Please sign in to comment.