created different file for the routes, and changes all the import
This commit is contained in:
1 parent
73b31778db
commit
45444ba8bd
4 files changed
+16
-6
No files matched your search
@@ -1,4 +1,5 @@
|
||||
"use client";
|
||||
import { ROUTES } from "@/lib/routes";
|
||||
|
||||
import React, {
|
||||
createContext,
|
||||
@@ -61,7 +62,8 @@ export function AuthProvider({ children }: { children: ReactNode }) {
|
||||
const logout = () => {
|
||||
setUser(null);
|
||||
localStorage.removeItem("lms_user");
|
||||
router.push("/");
|
||||
// router.push("/");
|
||||
router.push(ROUTES.home);
|
||||
};
|
||||
|
||||
return (
|
||||
|
||||
Reference in new issue
Block a user