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