From 3836cb67fadcdfdd91585089ffda6f07c01bf5d0 Mon Sep 17 00:00:00 2001 From: GuruF Date: Wed, 8 Oct 2025 11:10:27 +0530 Subject: [PATCH] refactor: change naming - contextwarpper to authprovider --- frontend/src/App.jsx | 6 +++--- frontend/src/AuthContext.jsx | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx index a2bed2ecca5..5ae915787a7 100644 --- a/frontend/src/App.jsx +++ b/frontend/src/App.jsx @@ -1,7 +1,7 @@ import React, { lazy, Suspense } from "react"; import { Routes, Route } from "react-router-dom"; import { I18nextProvider } from "react-i18next"; -import { ContextWrapper } from "@/AuthContext"; +import { AuthProvider } from "@/AuthContext"; import PrivateRoute, { AdminRoute, ManagerRoute, @@ -97,7 +97,7 @@ export default function App() { return ( }> - + @@ -278,7 +278,7 @@ export default function App() { - + ); diff --git a/frontend/src/AuthContext.jsx b/frontend/src/AuthContext.jsx index 34ec0cff7e6..388cd1d4e2a 100644 --- a/frontend/src/AuthContext.jsx +++ b/frontend/src/AuthContext.jsx @@ -2,7 +2,7 @@ import React, { useState, createContext } from "react"; import { AUTH_TIMESTAMP, AUTH_TOKEN, AUTH_USER } from "@/utils/constants"; export const AuthContext = createContext(null); -export function ContextWrapper(props) { +export function AuthProvider(props) { const localUser = localStorage.getItem(AUTH_USER); const localAuthToken = localStorage.getItem(AUTH_TOKEN); const [store, setStore] = useState({