base create and list
This commit is contained in:
+5
-2
@@ -1,10 +1,12 @@
|
||||
import { type FC } from 'react'
|
||||
import SideBar from '../shared/SideBar'
|
||||
import Header from '../shared/Header'
|
||||
import { Routes } from 'react-router-dom'
|
||||
import { Route, Routes } from 'react-router-dom'
|
||||
import Footer from '../shared/Footer'
|
||||
import { clx } from '../helpers/utils'
|
||||
import { useSharedStore } from '../shared/store/sharedStore'
|
||||
import Create from '../pages/category/Create'
|
||||
import List from '../pages/category/List'
|
||||
|
||||
const MainRouter: FC = () => {
|
||||
|
||||
@@ -23,7 +25,8 @@ const MainRouter: FC = () => {
|
||||
)}>
|
||||
<div className='pb-20'>
|
||||
<Routes>
|
||||
|
||||
<Route path='/category/create' element={<Create />} />
|
||||
<Route path='/category/list' element={<List />} />
|
||||
</Routes>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user