feat: refactor category routes and components for improved organization and clarity
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user