From 0d707acf05e3dda6caea0cdf46bdb85f14926449 Mon Sep 17 00:00:00 2001 From: Nick Mowen Date: Thu, 7 Dec 2023 20:50:59 -0700 Subject: [PATCH] Cleanup text --- web-new/src/components/card/ReviewCard.tsx | 6 +++--- web-new/src/pages/Review.tsx | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/web-new/src/components/card/ReviewCard.tsx b/web-new/src/components/card/ReviewCard.tsx index 4d50db8fa..5322df511 100644 --- a/web-new/src/components/card/ReviewCard.tsx +++ b/web-new/src/components/card/ReviewCard.tsx @@ -39,12 +39,12 @@ export default function ReviewCard({ allPreviews, timeline }: ReviewCardProps) { {timeline.camera.replaceAll('_', ' ')} - +
Activity: - +
{Object.entries(timeline.entries).map(([_, entry]) => { return ( -
+
{getTimelineIcon(entry)} {getTimelineItemDescription(entry)}
diff --git a/web-new/src/pages/Review.tsx b/web-new/src/pages/Review.tsx index 785ae6700..0f33b0b40 100644 --- a/web-new/src/pages/Review.tsx +++ b/web-new/src/pages/Review.tsx @@ -11,7 +11,7 @@ export function Review() { const { data: config } = useSWR("config"); const timezone = useMemo(() => config?.ui?.timezone || Intl.DateTimeFormat().resolvedOptions().timeZone, [config]); const { data: hourlyTimeline } = useSWR(['timeline/hourly', { timezone }]); - const { data: allPreviews } = useSWR(`preview/all/start/${hourlyTimeline?.start}/end/${hourlyTimeline?.end}`, { revalidateOnFocus: false }); + const { data: allPreviews } = useSWR(`preview/all/start/${hourlyTimeline?.start || 0}/end/${hourlyTimeline?.end || 0}`, { revalidateOnFocus: false }); const [detailLevel, setDetailLevel] = useState<'normal' | 'extra' | 'full'>('normal');