feat: pass onFinishCapture prop
This commit is contained in:
@@ -19,7 +19,11 @@ import { SidePanelHeader } from '../molecules/SidePanelHeader';
|
|||||||
// 3. Add description for each browser step
|
// 3. Add description for each browser step
|
||||||
// 4. Handle non custom action steps
|
// 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 [textLabels, setTextLabels] = useState<{ [id: number]: string }>({});
|
||||||
const [errors, setErrors] = useState<{ [id: number]: string }>({});
|
const [errors, setErrors] = useState<{ [id: number]: string }>({});
|
||||||
const [confirmedTextSteps, setConfirmedTextSteps] = useState<{ [id: number]: boolean }>({});
|
const [confirmedTextSteps, setConfirmedTextSteps] = useState<{ [id: number]: boolean }>({});
|
||||||
|
|||||||
@@ -129,7 +129,7 @@ export const RecordingPage = ({ recordingName }: RecordingPageProps) => {
|
|||||||
<InterpretationLog />
|
<InterpretationLog />
|
||||||
</Grid>
|
</Grid>
|
||||||
<Grid item xs={2}>
|
<Grid item xs={2}>
|
||||||
<RightSidePanel />
|
<RightSidePanel onFinishCapture={handleShowOutputData} />
|
||||||
</Grid>
|
</Grid>
|
||||||
</Grid>
|
</Grid>
|
||||||
: <Loader />}
|
: <Loader />}
|
||||||
|
|||||||
Reference in New Issue
Block a user