fix: update upload handling to conditionally reset upload state based on category

This commit is contained in:
Ardeman
2025-03-10 14:32:32 +08:00
parent e93c0a8464
commit 169f0166b8
4 changed files with 10 additions and 13 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ export const uploadCategorySchema = z
.enum(['featured_image', 'ads', 'content', 'profile_picture'])
.optional()
type TUpload = z.infer<typeof uploadCategorySchema>
export type TUpload = z.infer<typeof uploadCategorySchema>
type AdminContextProperties = {
isUploadOpen: TUpload