diff --git a/src/components/rv/DailyLogsView.tsx b/src/components/rv/DailyLogsView.tsx index b74960d..4a85c95 100644 --- a/src/components/rv/DailyLogsView.tsx +++ b/src/components/rv/DailyLogsView.tsx @@ -5,7 +5,7 @@ import type { WiredRecordViewProps } from './OrdersView'; import { DailyLogCard } from '../cards/DailyLogCard'; /** Daily Logs record view (Daily Reports workflow). */ -export function DailyLogsView({ onRowClick, onPunchOutRow, pageSize, headerActions, refreshKey, preset_alias = "my_logs", title = "Daily Logs" }: WiredRecordViewProps & { onPunchOutRow?: (row: any) => void, preset_alias?: string, title?: string }) { +export function DailyLogsView({ onRowClick, onPunchOutRow, pageSize, headerActions, refreshKey, preset_alias = "my_logs", title = "Daily Logs", hideTiles }: WiredRecordViewProps & { onPunchOutRow?: (row: any) => void, preset_alias?: string, title?: string, hideTiles?: boolean }) { return ( } /> ); diff --git a/src/components/rv/RecordView.tsx b/src/components/rv/RecordView.tsx index 86568c1..474fb7f 100644 --- a/src/components/rv/RecordView.tsx +++ b/src/components/rv/RecordView.tsx @@ -42,6 +42,8 @@ export interface RecordViewProps { sortDir?: 'asc' | 'desc'; /** If true, the analytics chart will not be rendered even if data is returned */ hideChart?: boolean; + /** If true, the tiles will not be rendered even if data is returned */ + hideTiles?: boolean; /** Pass a preset alias to apply server-side presets */ preset_alias?: string; } @@ -66,6 +68,7 @@ export function RecordView({ sortBy, sortDir, hideChart = false, + hideTiles = false, preset_alias, }: RecordViewProps) { const [page, setPage] = useState(1); @@ -144,7 +147,7 @@ export function RecordView({ return (
- + {!hideTiles && } {!hideChart && } diff --git a/src/screens/DailyLogsPage.tsx b/src/screens/DailyLogsPage.tsx index f107453..4f12025 100644 --- a/src/screens/DailyLogsPage.tsx +++ b/src/screens/DailyLogsPage.tsx @@ -22,6 +22,7 @@ export function DailyLogsPage() { return ( <> { const id = row.instance_id as number | string | undefined;