admin/validation/eventWizard.ts
alisaza 82593dc18c refactor(events): update event management components and remove unused files
- Replaced `LIST_PUBLIC_CATEGORIES` with `LIST_ADMIN_CATEGORIES_FLAT` in `ArticleFormModal.tsx`.
- Removed the "Add Event" button from the dashboard page.
- Simplified the `EventsPage` by removing the button and adjusting the layout.
- Cleaned up the `AdminEventEditPage` by removing unnecessary props.
- Deleted unused layout and page files related to event creation.
- Updated `AdminAuthContent` to use `useAdminCitiesQuery` instead of `useDiscoveryCitiesQuery`.
- Refactored `EventGuestListAccessPanel` to remove the `accessMode` prop and adjust API calls accordingly.
- Removed several unused components and tests related to event creation, enhancing project maintainability.
2026-09-07 18:09:55 +03:30

13 lines
359 B
TypeScript

import { z } from 'zod'
import { texts } from '@/texts'
const v = texts.validation.eventWizard
export const EventWizardFaqFormValidation = z.object({
question: z.string().trim().min(1, v.faqQuestionRequired),
answer: z.string().trim().min(1, v.faqAnswerRequired),
})
export type EventWizardFaqFormValues = z.infer<typeof EventWizardFaqFormValidation>