From c8671e80428771624b6e63bb8eb7ededee8bc684 Mon Sep 17 00:00:00 2001 From: Pavel Baluev Date: Sun, 24 Mar 2024 23:01:46 +0100 Subject: [PATCH] Update schema for office.id and office.area.id --- .../client/components/AdminDashboardStats.tsx | 33 ++++++++----------- src/server/app-config/schemas.ts | 6 ++-- 2 files changed, 18 insertions(+), 21 deletions(-) diff --git a/src/modules/room-reservation/client/components/AdminDashboardStats.tsx b/src/modules/room-reservation/client/components/AdminDashboardStats.tsx index 6c9f57ae..fc66f3e8 100644 --- a/src/modules/room-reservation/client/components/AdminDashboardStats.tsx +++ b/src/modules/room-reservation/client/components/AdminDashboardStats.tsx @@ -7,7 +7,14 @@ import { StackedBarChart, Card } from '#client/components/charts' import { DATE_FORMAT } from '#client/constants' import * as stores from '#client/stores' import * as fp from '#shared/utils/fp' -import { H2, HR, Placeholder, Table, UserLabel, WidgetWrapper } from '#client/components/ui' +import { + H2, + HR, + Placeholder, + Table, + UserLabel, + WidgetWrapper, +} from '#client/components/ui' import { RoomReservationAdminDashboardStats } from '#shared/types' import { useAdminDashboardStats } from '../queries' @@ -82,7 +89,7 @@ export const AdminDashboardStats: React.FC = ({ period, unit }) => { if (!isFetched || !data) { return ( - + ) @@ -90,7 +97,7 @@ export const AdminDashboardStats: React.FC = ({ period, unit }) => { if (noData) { return ( - + ) @@ -99,26 +106,14 @@ export const AdminDashboardStats: React.FC = ({ period, unit }) => { return (
- - + + - - + +