From b01e1f6f48734ac9f88a7bb4d9d07c211a53152c Mon Sep 17 00:00:00 2001 From: Masanari Hamada Date: Thu, 5 Dec 2024 09:13:20 +0900 Subject: [PATCH] fix: UserProvider -> ClientProvider --- frontend/app/contexts/client-context.tsx | 2 +- frontend/app/routes/client/route.tsx | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/app/contexts/client-context.tsx b/frontend/app/contexts/client-context.tsx index 9050dbc9..3aed059e 100644 --- a/frontend/app/contexts/client-context.tsx +++ b/frontend/app/contexts/client-context.tsx @@ -145,7 +145,7 @@ type ClientContextProps = { const ClientContext = createContext({}); -export const UserProvider = ({ children }: { children: ReactNode }) => { +export const ClientProvider = ({ children }: { children: ReactNode }) => { const [accessToken] = useState(() => getUserAccessToken()); const [userId] = useState(() => getUserId()); const navigate = useNavigate(); diff --git a/frontend/app/routes/client/route.tsx b/frontend/app/routes/client/route.tsx index 92d4f0c8..4be79069 100644 --- a/frontend/app/routes/client/route.tsx +++ b/frontend/app/routes/client/route.tsx @@ -1,14 +1,14 @@ import { Outlet } from "@remix-run/react"; import { FooterNavigation } from "~/components/modules/footer-navigation/footer-navigation"; import { MainFrame } from "~/components/primitives/frame/frame"; -import { UserProvider } from "../../contexts/client-context"; +import { ClientProvider } from "../../contexts/client-context"; export default function ClientLayout() { return ( - + - + );