Skip to content

Commit

Permalink
Update storage to link to cameras and share name styling with rest of ui
Browse files Browse the repository at this point in the history
  • Loading branch information
NickM-27 committed Dec 5, 2022
1 parent 9cf8337 commit c6a855e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion web/src/routes/Storage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import Heading from '../components/Heading';
import { useWs } from '../api/ws';
import useSWR from 'swr';
import { Table, Tbody, Thead, Tr, Th, Td } from '../components/Table';
import Link from '../components/Link';

const emptyObject = Object.freeze({});

Expand Down Expand Up @@ -82,7 +83,9 @@ export default function Storage() {
<div data-testid="detectors" className="grid grid-cols-1 3xl:grid-cols-3 md:grid-cols-2 gap-4">
{Object.entries(storage).map(([name, camera]) => (
<div key={name} className="dark:bg-gray-800 shadow-md hover:shadow-lg rounded-lg transition-shadow">
<div className="text-lg flex justify-between p-4">{name}</div>
<div className="capitalize text-lg flex justify-between p-4">
<Link href={`/cameras/${name}`}>{name.replaceAll('_', ' ')}</Link>
</div>
<div className="p-2">
<Table className="w-full">
<Thead>
Expand Down

0 comments on commit c6a855e

Please sign in to comment.