feat: pass onFinishCapture prop

This commit is contained in:
karishmas6
2024-09-08 07:39:09 +05:30
parent 685675a92f
commit 572c75ed0f
2 changed files with 6 additions and 2 deletions

View File

@@ -19,7 +19,11 @@ import { SidePanelHeader } from '../molecules/SidePanelHeader';
// 3. Add description for each browser step
// 4. Handle non custom action steps
export const RightSidePanel = () => {
interface RightSidePanelProps {
onFinishCapture: () => void;
}
export const RightSidePanel: React.FC<RightSidePanelProps> = ({ onFinishCapture }) => {
const [textLabels, setTextLabels] = useState<{ [id: number]: string }>({});
const [errors, setErrors] = useState<{ [id: number]: string }>({});
const [confirmedTextSteps, setConfirmedTextSteps] = useState<{ [id: number]: boolean }>({});

View File

@@ -129,7 +129,7 @@ export const RecordingPage = ({ recordingName }: RecordingPageProps) => {
<InterpretationLog />
</Grid>
<Grid item xs={2}>
<RightSidePanel />
<RightSidePanel onFinishCapture={handleShowOutputData} />
</Grid>
</Grid>
: <Loader />}