feat: remove setShowOutputData prop
This commit is contained in:
@@ -10,7 +10,6 @@ import HelpIcon from '@mui/icons-material/Help';
|
|||||||
|
|
||||||
interface InterpretationButtonsProps {
|
interface InterpretationButtonsProps {
|
||||||
enableStepping: (isPaused: boolean) => void;
|
enableStepping: (isPaused: boolean) => void;
|
||||||
setShowOutputData: (show: boolean) => void;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
interface InterpretationInfo {
|
interface InterpretationInfo {
|
||||||
@@ -23,7 +22,7 @@ const interpretationInfo: InterpretationInfo = {
|
|||||||
isPaused: false,
|
isPaused: false,
|
||||||
}
|
}
|
||||||
|
|
||||||
export const InterpretationButtons = ({ enableStepping, setShowOutputData }: InterpretationButtonsProps) => {
|
export const InterpretationButtons = ({ enableStepping }: InterpretationButtonsProps) => {
|
||||||
const [info, setInfo] = React.useState<InterpretationInfo>(interpretationInfo);
|
const [info, setInfo] = React.useState<InterpretationInfo>(interpretationInfo);
|
||||||
const [decisionModal, setDecisionModal] = useState<{
|
const [decisionModal, setDecisionModal] = useState<{
|
||||||
pair: WhereWhatPair | null,
|
pair: WhereWhatPair | null,
|
||||||
@@ -119,7 +118,6 @@ export const InterpretationButtons = ({ enableStepping, setShowOutputData }: Int
|
|||||||
} else {
|
} else {
|
||||||
notify('error', 'Interpretation failed to start');
|
notify('error', 'Interpretation failed to start');
|
||||||
}
|
}
|
||||||
setShowOutputData(true);
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user