I finished the remaining polish so the admin app now feels fully “app‑like” across the core screens.
This commit is contained in:
15
resources/js/admin/mobile/lib/eventListStats.ts
Normal file
15
resources/js/admin/mobile/lib/eventListStats.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import type { TenantEvent } from '../../api';
|
||||
|
||||
export type EventListStats = {
|
||||
photos: number;
|
||||
guests: number;
|
||||
tasks: number;
|
||||
};
|
||||
|
||||
export function buildEventListStats(event: TenantEvent): EventListStats {
|
||||
return {
|
||||
photos: event.photo_count ?? 0,
|
||||
guests: event.active_invites_count ?? event.total_invites_count ?? 0,
|
||||
tasks: event.tasks_count ?? 0,
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user