Added tabs to form
This commit is contained in:
@@ -1,15 +1,23 @@
|
||||
import { z } from 'zod'
|
||||
import type { CalendarEvent } from "./CalendarEvent"
|
||||
import type { CalendarMonth } from "./CalendarMonth"
|
||||
import type { RPGDate } from "./Date"
|
||||
import { type CalendarMonth } from "./CalendarMonth"
|
||||
import { dateSchema, type RPGDate } from "./Date"
|
||||
|
||||
export interface CalendarConfig {
|
||||
months: CalendarMonth[]
|
||||
daysPerMonth: number
|
||||
today: RPGDate
|
||||
}
|
||||
|
||||
export interface Calendar extends CalendarConfig {
|
||||
id: number
|
||||
id?: number
|
||||
name: string
|
||||
events: CalendarEvent[]
|
||||
color?: string,
|
||||
}
|
||||
|
||||
export const postCalendarSchema = z.object({
|
||||
name: z.string(),
|
||||
today: dateSchema.optional().nullable(),
|
||||
color: z.string().optional().nullable(),
|
||||
worldId: z.number().int(),
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user