Add PlateRead component and integrate it into the Dashboard; refactor VideoFeed and SightingStack for improved layout

This commit is contained in:
2025-12-22 14:09:30 +00:00
parent c2f55898fe
commit 6879e30b9c
6 changed files with 67 additions and 10 deletions

View File

@@ -6,7 +6,6 @@ type SightingItemProps = {
};
const SightingItem = ({ sighting }: SightingItemProps) => {
console.log(sighting);
const motion = sighting.motion.toLowerCase() === "away" ? true : false;
return (
<div className="flex flex-row items-center border p-2 mb-2 rounded-lg border-gray-500 justify-between hover:bg-[#233241] hover:cursor-pointer">

View File

@@ -8,7 +8,7 @@ type SightingStackProps = {
};
const SightingStack = ({ sightings }: SightingStackProps) => {
return (
<Card className="p-4 w-full">
<Card className="p-4 w-full h-full md:h-[65%]">
<CardHeader title="Sightings" />
{sightings.map((sighting) => (
<SightingItem key={sighting.ref} sighting={sighting} />