chore: file formatting
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import {Navigate} from "react-router-dom";
|
||||
import {useAuth} from "@/context/AuthContext";
|
||||
import { Navigate } from 'react-router-dom';
|
||||
import { useAuth } from '@/context/AuthContext';
|
||||
|
||||
export default function ProtectedRoute({children}: any) {
|
||||
const {token} = useAuth();
|
||||
export default function ProtectedRoute({ children }: any) {
|
||||
const { token } = useAuth();
|
||||
|
||||
if (!token) {
|
||||
return <Navigate to="/" />;
|
||||
|
||||
Reference in New Issue
Block a user