fix: update upload handling to conditionally reset upload state based on category
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user