Skip to content

Commit

Permalink
fix: UserProvider -> ClientProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
narirou committed Dec 5, 2024
1 parent 56a1692 commit b01e1f6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion frontend/app/contexts/client-context.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ type ClientContextProps = {

const ClientContext = createContext<ClientContextProps>({});

export const UserProvider = ({ children }: { children: ReactNode }) => {
export const ClientProvider = ({ children }: { children: ReactNode }) => {
const [accessToken] = useState(() => getUserAccessToken());
const [userId] = useState(() => getUserId());
const navigate = useNavigate();
Expand Down
6 changes: 3 additions & 3 deletions frontend/app/routes/client/route.tsx
Original file line number Diff line number Diff line change
@@ -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 (
<MainFrame>
<UserProvider>
<ClientProvider>
<Outlet />
</UserProvider>
</ClientProvider>
<FooterNavigation />
</MainFrame>
);
Expand Down

0 comments on commit b01e1f6

Please sign in to comment.