category list and update

This commit is contained in:
hamid zarghami
2025-09-21 10:45:52 +03:30
parent 6191fb15a4
commit 1457afce0b
9 changed files with 572 additions and 30 deletions
+5 -2
View File
@@ -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>