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:
@@ -22,9 +22,9 @@ export const initialState: CameraFeedState = {
|
||||
|
||||
selectedRegionIndex: 0,
|
||||
modeByCamera: {
|
||||
A: "brush",
|
||||
B: "brush",
|
||||
C: "brush",
|
||||
A: "painter",
|
||||
B: "painter",
|
||||
C: "painter",
|
||||
},
|
||||
};
|
||||
|
||||
@@ -70,7 +70,6 @@ export function reducer(state: CameraFeedState, action: CameraFeedAction) {
|
||||
},
|
||||
};
|
||||
case "REMOVE_REGION":
|
||||
console.log(action.payload);
|
||||
return {
|
||||
...state,
|
||||
regionsByCamera: {
|
||||
|
||||
Reference in New Issue
Block a user