feat: implement category creation and update pages with routing adjustments
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { CreateCategoryPage } from '~/pages/category-create'
|
||||
import { CreateCategoryPage } from '~/pages/dashboard-category-create'
|
||||
|
||||
const DashboardCategoryLayout = () => <CreateCategoryPage />
|
||||
export default DashboardCategoryLayout
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
import { UpdateCategoryPage } from '~/pages/dashboard-category-update'
|
||||
|
||||
const DashboardCategoryUpdateLayout = () => <UpdateCategoryPage />
|
||||
export default DashboardCategoryUpdateLayout
|
||||
@@ -1,2 +1,34 @@
|
||||
const DashboardSettingsLayout = () => <div>Settings Page</div>
|
||||
import { Button } from '~/components/ui/button'
|
||||
|
||||
const DashboardSettingsLayout = () => (
|
||||
<div>
|
||||
{/* action sementara kategory */}
|
||||
<div className="flex space-x-2">
|
||||
<Button
|
||||
as="a"
|
||||
href={`/lg-admin/categories`}
|
||||
className="text-md rounded-md"
|
||||
size="sm"
|
||||
>
|
||||
List Kategory
|
||||
</Button>
|
||||
<Button
|
||||
as="a"
|
||||
href={`/lg-admin/category/create`}
|
||||
className="text-md rounded-md"
|
||||
size="sm"
|
||||
>
|
||||
Create Category
|
||||
</Button>
|
||||
<Button
|
||||
as="a"
|
||||
href={`/lg-admin/category/update/1`}
|
||||
className="text-md rounded-md"
|
||||
size="sm"
|
||||
>
|
||||
Update Category
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
export default DashboardSettingsLayout
|
||||
|
||||
@@ -8,7 +8,7 @@ import { handleCookie } from '~/libs/cookies'
|
||||
import {
|
||||
createCategorySchema,
|
||||
type TCategorySchema,
|
||||
} from '~/pages/category-create'
|
||||
} from '~/pages/dashboard-category-create'
|
||||
|
||||
import type { Route } from './+types/actions.register'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user