Refactor camera feed components and add sighting tables
- Updated mode settings in camera feed reducer to use "painter" - Renamed PlatePatch component to SightingPatch and updated imports - Removed obsolete PlatePatch component - Added SightingEntryTable and SightingExitTable components for displaying sighting data - Implemented useSightingEntryAndExit hook for fetching entry and exit sightings - Adjusted VideoFeedGridPainter for improved width calculation - Introduced DecodeReading type for better typing
This commit is contained in:
27
src/features/cameras/components/PlatePatch/SightingPatch.tsx
Normal file
27
src/features/cameras/components/PlatePatch/SightingPatch.tsx
Normal file
@@ -0,0 +1,27 @@
|
||||
import { Tab, Tabs, TabList, TabPanel } from "react-tabs";
|
||||
import Card from "../../../../ui/Card";
|
||||
import CardHeader from "../../../../ui/CardHeader";
|
||||
import SightingEntryTable from "./SightingEntryTable";
|
||||
import SightingExitTable from "./SightingExitTable";
|
||||
|
||||
const PlatePatch = () => {
|
||||
return (
|
||||
<Card className="md:row-start-4 md:col-span-2 p-4 h-[190%]">
|
||||
<CardHeader title="Entry / Exit" />
|
||||
<Tabs>
|
||||
<TabList>
|
||||
<Tab>Entry Sightings</Tab>
|
||||
<Tab>Exit Sightings</Tab>
|
||||
</TabList>
|
||||
<TabPanel>
|
||||
<SightingEntryTable />
|
||||
</TabPanel>
|
||||
<TabPanel>
|
||||
<SightingExitTable />
|
||||
</TabPanel>
|
||||
</Tabs>
|
||||
</Card>
|
||||
);
|
||||
};
|
||||
|
||||
export default PlatePatch;
|
||||
Reference in New Issue
Block a user