feat : optimaze code by eslint

This commit is contained in:
alij
2024-07-03 14:51:40 +03:30
parent d0e3f6be00
commit face0a30d9
7 changed files with 24 additions and 54 deletions

View File

@@ -15,7 +15,7 @@ import AuthLayout from "./layout/AuthLayout";
import Login from "./pages/login";
import Profile from "./pages/profile";
import { Toaster } from "react-hot-toast";
import { isAuthenticated } from "./utils/auth";
import { IsAuthenticated } from "./utils/auth";
import { HelmetProvider } from "react-helmet-async";
const App = () => {
@@ -31,6 +31,7 @@ const App = () => {
<Routes>
<Route path="/" element={<Layout />}>
<Route index element={<Shop />} />
<Route path="configs/:configs" element={<Navigate to="/" />} />
<Route path="tutorial" element={<Tutorial />} />
<Route path="rule" element={<Rule />} />
<Route path="about" element={<About />} />
@@ -41,7 +42,7 @@ const App = () => {
<Route
path="login"
element={
isAuthenticated() ? (
IsAuthenticated() ? (
<Navigate to="/" replace={true} />
) : (
<AuthLayout />