category list and update
This commit is contained in:
+5
-2
@@ -7,6 +7,8 @@ import { clx } from '../helpers/utils'
|
||||
import { useSharedStore } from '../shared/store/sharedStore'
|
||||
import Create from '../pages/category/Create'
|
||||
import List from '../pages/category/List'
|
||||
import Update from '../pages/category/Update'
|
||||
import { Pages } from '../config/Pages'
|
||||
|
||||
const MainRouter: FC = () => {
|
||||
|
||||
@@ -25,8 +27,9 @@ const MainRouter: FC = () => {
|
||||
)}>
|
||||
<div className='pb-20'>
|
||||
<Routes>
|
||||
<Route path='/category/create' element={<Create />} />
|
||||
<Route path='/category/list' element={<List />} />
|
||||
<Route path={Pages.category.create} element={<Create />} />
|
||||
<Route path={Pages.category.list} element={<List />} />
|
||||
<Route path={`${Pages.category.update}:id`} element={<Update />} />
|
||||
</Routes>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user