created different file for the routes, and changes all the import

This commit is contained in:
sumona-banerjeee committed 2026-04-29 11:43:54 +05:30
1 parent 73b31778db
commit 45444ba8bd
4 files changed
+16 -6

No files matched your search

+3 -1
View File
@@ -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 (