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