mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-07 11:45:24 +03:00
Cleanup text
This commit is contained in:
parent
c7e76363df
commit
0d707acf05
@ -39,12 +39,12 @@ export default function ReviewCard({ allPreviews, timeline }: ReviewCardProps) {
|
||||
<HiOutlineVideoCamera className="h-5 w-5 mr-2 inline" />
|
||||
{timeline.camera.replaceAll('_', ' ')}
|
||||
</div>
|
||||
<Heading as="h4" className="my-2">
|
||||
<div className="my-2 text-sm font-medium">
|
||||
Activity:
|
||||
</Heading>
|
||||
</div>
|
||||
{Object.entries(timeline.entries).map(([_, entry]) => {
|
||||
return (
|
||||
<div key={entry.timestamp} className="flex text-xs my-1">
|
||||
<div key={entry.timestamp} className="flex text-xs capitalize my-1 items-center">
|
||||
{getTimelineIcon(entry)}
|
||||
{getTimelineItemDescription(entry)}
|
||||
</div>
|
||||
|
||||
@ -11,7 +11,7 @@ export function Review() {
|
||||
const { data: config } = useSWR<FrigateConfig>("config");
|
||||
const timezone = useMemo(() => config?.ui?.timezone || Intl.DateTimeFormat().resolvedOptions().timeZone, [config]);
|
||||
const { data: hourlyTimeline } = useSWR<HourlyTimeline>(['timeline/hourly', { timezone }]);
|
||||
const { data: allPreviews } = useSWR<Preview[]>(`preview/all/start/${hourlyTimeline?.start}/end/${hourlyTimeline?.end}`, { revalidateOnFocus: false });
|
||||
const { data: allPreviews } = useSWR<Preview[]>(`preview/all/start/${hourlyTimeline?.start || 0}/end/${hourlyTimeline?.end || 0}`, { revalidateOnFocus: false });
|
||||
|
||||
const [detailLevel, setDetailLevel] = useState<'normal' | 'extra' | 'full'>('normal');
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user