diff --git a/app/javascript/src/Routes.tsx b/app/javascript/src/Routes.tsx index db22c21..9ca3819 100644 --- a/app/javascript/src/Routes.tsx +++ b/app/javascript/src/Routes.tsx @@ -2,36 +2,29 @@ import type { FC } from "react"; import React from "react"; import { Switch, Route } from "react-router-dom"; -import { useCurrentUser } from "./contexts/UserProvider"; import { Dashbaord, Home, Orders, Wallet } from "./pages"; export const Routes: FC = () => { - const { isAuthenticated } = useCurrentUser(); - return ( - {isAuthenticated && ( - <> - - - - - - - - - - - - - - - - - )} + + + + + + + + + + + + + + + ); }; diff --git a/app/javascript/src/components/Navbar/Navbar.tsx b/app/javascript/src/components/Navbar/Navbar.tsx index fde8013..f0b87eb 100644 --- a/app/javascript/src/components/Navbar/Navbar.tsx +++ b/app/javascript/src/components/Navbar/Navbar.tsx @@ -25,8 +25,7 @@ export const Navbar = () => {