From d15fb205eeb2b013e26d2f1d98d41b46d811c2cc Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Sat, 19 Oct 2024 18:47:31 +0530 Subject: [PATCH] feat: remove setShowOutputData prop --- src/components/molecules/InterpretationButtons.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/components/molecules/InterpretationButtons.tsx b/src/components/molecules/InterpretationButtons.tsx index eb20362a..c9f45be2 100644 --- a/src/components/molecules/InterpretationButtons.tsx +++ b/src/components/molecules/InterpretationButtons.tsx @@ -10,7 +10,6 @@ import HelpIcon from '@mui/icons-material/Help'; interface InterpretationButtonsProps { enableStepping: (isPaused: boolean) => void; - setShowOutputData: (show: boolean) => void; } interface InterpretationInfo { @@ -23,7 +22,7 @@ const interpretationInfo: InterpretationInfo = { isPaused: false, } -export const InterpretationButtons = ({ enableStepping, setShowOutputData }: InterpretationButtonsProps) => { +export const InterpretationButtons = ({ enableStepping }: InterpretationButtonsProps) => { const [info, setInfo] = React.useState(interpretationInfo); const [decisionModal, setDecisionModal] = useState<{ pair: WhereWhatPair | null, @@ -119,7 +118,6 @@ export const InterpretationButtons = ({ enableStepping, setShowOutputData }: Int } else { notify('error', 'Interpretation failed to start'); } - setShowOutputData(true); } };