feat: refactor category routes and components for improved organization and clarity

This commit is contained in:
Ardeman
2025-03-07 14:58:35 +08:00
parent 097268647a
commit 72e2dac328
7 changed files with 29 additions and 28 deletions
@@ -11,5 +11,6 @@ export const loader = async ({ request }: Route.LoaderArgs) => {
})
return { dataCategories }
}
const DashboardCategoriesLayout = () => <CategoriesPage />
export default DashboardCategoriesLayout
const DashboardCategoriesIndexLayout = () => <CategoriesPage />
export default DashboardCategoriesIndexLayout
@@ -0,0 +1,4 @@
import { CreateCategoryPage } from '~/pages/dashboard-category-create'
const DashboardCategoriesCreateLayout = () => <CreateCategoryPage />
export default DashboardCategoriesCreateLayout
@@ -0,0 +1,4 @@
import { UpdateCategoryPage } from '~/pages/dashboard-category-update'
const DashboardCategoriesUpdateLayout = () => <UpdateCategoryPage />
export default DashboardCategoriesUpdateLayout
@@ -1,4 +0,0 @@
import { CreateCategoryPage } from '~/pages/dashboard-category-create'
const DashboardCategoryLayout = () => <CreateCategoryPage />
export default DashboardCategoryLayout
@@ -1,4 +0,0 @@
import { UpdateCategoryPage } from '~/pages/dashboard-category-update'
const DashboardCategoryUpdateLayout = () => <UpdateCategoryPage />
export default DashboardCategoryUpdateLayout