This commit is contained in:
Malai Raja
2023-12-01 10:32:28 +05:30
parent b3371d3bc0
commit 2aab086a66
16 changed files with 152 additions and 52 deletions

View File

@@ -16,11 +16,11 @@ import { useEffect } from 'react';
const App = () =>{
let navigate=useNavigate()
// useEffect(()=>{
// if (!localStorage.getItem("firstname")) {
// navigate('/login')
// }
// },[])
useEffect(()=>{
if (!localStorage.getItem("authname")) {
navigate('/login')
}
},[])
return <>