fix bug structure
This commit is contained in:
+4
-9
@@ -1,14 +1,9 @@
|
||||
import { type FC } from 'react'
|
||||
import { Route, Routes } from 'react-router-dom'
|
||||
import Login from '../pages/auth/Login'
|
||||
import React from 'react'
|
||||
|
||||
const AuthRouter: FC = () => {
|
||||
const Auth = () => {
|
||||
return (
|
||||
<Routes>
|
||||
<Route path="/auth/login" element={<Login />} />
|
||||
<Route path="/auth/*" element={<Login />} />
|
||||
</Routes>
|
||||
<div>Auth</div>
|
||||
)
|
||||
}
|
||||
|
||||
export default AuthRouter
|
||||
export default Auth
|
||||
+2
-3
@@ -1,7 +1,7 @@
|
||||
import { type FC } from 'react'
|
||||
import SideBar from '../shared/SideBar'
|
||||
import Header from '../shared/Header'
|
||||
import { Routes, Route } from 'react-router-dom'
|
||||
import { Routes } from 'react-router-dom'
|
||||
import Footer from '../shared/Footer'
|
||||
import { clx } from '../helpers/utils'
|
||||
import { useSharedStore } from '../shared/store/sharedStore'
|
||||
@@ -23,8 +23,7 @@ const MainRouter: FC = () => {
|
||||
)}>
|
||||
<div className='pb-20'>
|
||||
<Routes>
|
||||
<Route path="/" element={<div className="p-8 text-center">خوش آمدید - صفحه اصلی</div>} />
|
||||
<Route path="/dashboard" element={<div className="p-8 text-center">داشبورد</div>} />
|
||||
|
||||
</Routes>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user