fixed colour painting and eraser
This commit is contained in:
@@ -9,6 +9,8 @@ type CameraSettingsProps = {
|
||||
selectedRegionIndex: number;
|
||||
onSelectRegion: (index: number) => void;
|
||||
onChangeRegionColour: (index: number, colour: string) => void;
|
||||
isErasing: boolean;
|
||||
onSelectErasing: (isErasing: boolean) => void;
|
||||
};
|
||||
|
||||
const CameraSettings = ({
|
||||
@@ -16,9 +18,11 @@ const CameraSettings = ({
|
||||
selectedRegionIndex,
|
||||
onSelectRegion,
|
||||
onChangeRegionColour,
|
||||
isErasing,
|
||||
onSelectErasing,
|
||||
}: CameraSettingsProps) => {
|
||||
return (
|
||||
<Card className="p-4 min-h-screen">
|
||||
<Card className="p-4 min-h-screen w-[80%] place-self-end">
|
||||
<Tabs selectedTabClassName="bg-gray-300 text-gray-900 font-semibold border-none rounded-sm">
|
||||
<TabList>
|
||||
<Tab>Target Detection</Tab>
|
||||
@@ -30,6 +34,8 @@ const CameraSettings = ({
|
||||
selectedRegionIndex={selectedRegionIndex}
|
||||
onSelectRegion={onSelectRegion}
|
||||
onChangeRegionColour={onChangeRegionColour}
|
||||
isErasing={isErasing}
|
||||
onSelectErasing={onSelectErasing}
|
||||
/>
|
||||
</TabPanel>
|
||||
<TabPanel>
|
||||
|
||||
Reference in New Issue
Block a user