Working on dnd

This commit is contained in:
2024-09-19 16:55:33 +02:00
parent ba10c02d0f
commit 6fb84c97fe
8 changed files with 48 additions and 12 deletions

View File

@@ -25,6 +25,7 @@ export const UpdateCategorySchema = z.object({
icon: z.string().optional(),
color: z.string().optional(),
nameVisible: z.boolean().optional().default(false),
grid: z.string().optional(),
})
export const UpdateCategorySchemaType = z.infer<typeof UpdateCategorySchema>
@@ -34,6 +35,7 @@ export interface CategoryType {
icon: string
color: string
nameVisible: boolean
grid: GridType
}
// Tab
@@ -79,6 +81,13 @@ export const UpdateUserSchema = z.object({
})
export const UpdateUserSchemaType = z.infer<typeof UpdateUserSchema>
export interface GridType {
tabs: Array<{
tabId: number
orderId: number
}>
}
export interface OpenWeatherType {
weather: Array<{
main: string