fix: resolve prisma v6 warning and next 15 form action typings
This commit is contained in:
@@ -30,7 +30,7 @@ export default async function CategoryFormPage({ params }: { params: Promise<{ i
|
||||
</div>
|
||||
|
||||
<div className="bg-paper p-6 rounded-2xl shadow-sm border border-pine/8">
|
||||
<form action={createOrUpdateCategoryAction} className="space-y-5">
|
||||
<form action={createOrUpdateCategoryAction as any} className="space-y-5">
|
||||
<input type="hidden" name="id" value={resolvedParams.id} />
|
||||
|
||||
<div>
|
||||
|
||||
@@ -53,7 +53,7 @@ export default async function AdminCategoriesPage() {
|
||||
>
|
||||
<Edit2 className="w-4 h-4" />
|
||||
</Link>
|
||||
<form action={deleteCategoryAction} className="inline-block">
|
||||
<form action={deleteCategoryAction as any} className="inline-block">
|
||||
<input type="hidden" name="id" value={cat.id} />
|
||||
<DeleteButton />
|
||||
</form>
|
||||
|
||||
Reference in New Issue
Block a user