- added add and remove regions on paint selector
This commit is contained in:
@@ -15,6 +15,8 @@ type CameraSettingsProps = {
|
||||
setTabIndex: (tabIndex: number) => void;
|
||||
tabIndex: number;
|
||||
paintedCells: RefObject<Map<string, PaintedCell>>;
|
||||
onAddRegion: () => void;
|
||||
OnRemoveRegion: () => void;
|
||||
};
|
||||
|
||||
const CameraSettings = ({
|
||||
@@ -27,6 +29,8 @@ const CameraSettings = ({
|
||||
tabIndex,
|
||||
setTabIndex,
|
||||
paintedCells,
|
||||
onAddRegion,
|
||||
OnRemoveRegion,
|
||||
}: CameraSettingsProps) => {
|
||||
return (
|
||||
<Card className="p-4 col-span-3 row-span-5 col-start-3 md:col-span-3 md:row-span-5 max-h-screen overflow-auto">
|
||||
@@ -50,6 +54,8 @@ const CameraSettings = ({
|
||||
mode={mode}
|
||||
onSelectMode={onSelectMode}
|
||||
paintedCells={paintedCells}
|
||||
onAddRegion={onAddRegion}
|
||||
OnRemoveRegion={OnRemoveRegion}
|
||||
/>
|
||||
</TabPanel>
|
||||
<TabPanel>
|
||||
|
||||
Reference in New Issue
Block a user