stuff done
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
import {auth} from '@/auth'
|
||||
import AdminPermission from '@/components/(protected)/admin/auth/permission'
|
||||
import {CreateForm} from '@/components/(protected)/admin/category/create-form'
|
||||
import ProductCreateEditForm from '@/components/(protected)/admin/product/create-edit-form'
|
||||
import {dump} from '@/lib/utils'
|
||||
|
||||
export default async function Page({
|
||||
@@ -12,7 +14,12 @@ export default async function Page({
|
||||
|
||||
switch ((slug || [])[0]) {
|
||||
case 'create':
|
||||
return <CreateForm />
|
||||
return (
|
||||
<>
|
||||
<AdminPermission />
|
||||
<CreateForm />
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
||||
return <div>{dump(slug)}</div>
|
||||
|
||||
Reference in New Issue
Block a user