feat : optimaze code by eslint
This commit is contained in:
@@ -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 />
|
||||
|
||||
Reference in New Issue
Block a user