Fix TypeScript typecheck errors
This commit is contained in:
@@ -2,6 +2,7 @@ import React from 'react';
|
||||
import { afterEach, describe, expect, it, vi } from 'vitest';
|
||||
import { render, screen, waitFor, within } from '@testing-library/react';
|
||||
import { ADMIN_EVENTS_PATH } from '../../constants';
|
||||
import type { TenantEvent } from '../../api';
|
||||
|
||||
const fixtures = vi.hoisted(() => ({
|
||||
event: {
|
||||
@@ -9,14 +10,17 @@ const fixtures = vi.hoisted(() => ({
|
||||
name: 'Demo Wedding',
|
||||
slug: 'demo-event',
|
||||
event_date: '2026-02-19',
|
||||
status: 'published' as const,
|
||||
settings: { location: 'Berlin' },
|
||||
event_type_id: null,
|
||||
event_type: null,
|
||||
status: 'published',
|
||||
engagement_mode: undefined,
|
||||
settings: { location: 'Berlin', guest_upload_visibility: 'immediate' },
|
||||
tasks_count: 4,
|
||||
photo_count: 12,
|
||||
active_invites_count: 3,
|
||||
total_invites_count: 5,
|
||||
member_permissions: ['photos:moderate', 'tasks:manage', 'join-tokens:manage'],
|
||||
},
|
||||
} as TenantEvent,
|
||||
activePackage: {
|
||||
id: 1,
|
||||
package_id: 1,
|
||||
|
||||
Reference in New Issue
Block a user