feat: remove setShowOutputData prop
This commit is contained in:
@@ -10,13 +10,10 @@ import { FastForward } from "@mui/icons-material";
|
|||||||
import { useSocketStore } from "../../context/socket";
|
import { useSocketStore } from "../../context/socket";
|
||||||
import { useGlobalInfoStore } from "../../context/globalInfo";
|
import { useGlobalInfoStore } from "../../context/globalInfo";
|
||||||
|
|
||||||
interface SidePanelHeaderProps {
|
export const SidePanelHeader = () => {
|
||||||
setShowOutputData: (show: boolean) => void;
|
|
||||||
}
|
|
||||||
|
|
||||||
export const SidePanelHeader: React.FC<SidePanelHeaderProps> = ({ setShowOutputData }) => {
|
|
||||||
|
|
||||||
const [steppingIsDisabled, setSteppingIsDisabled] = useState(true);
|
const [steppingIsDisabled, setSteppingIsDisabled] = useState(true);
|
||||||
|
|
||||||
const { socket } = useSocketStore();
|
const { socket } = useSocketStore();
|
||||||
|
|
||||||
const handleStep = () => {
|
const handleStep = () => {
|
||||||
@@ -25,7 +22,7 @@ export const SidePanelHeader: React.FC<SidePanelHeaderProps> = ({ setShowOutputD
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div style={{ width: 'inherit' }}>
|
<div style={{ width: 'inherit' }}>
|
||||||
<InterpretationButtons enableStepping={(isPaused) => setSteppingIsDisabled(!isPaused)} setShowOutputData={setShowOutputData} />
|
<InterpretationButtons enableStepping={(isPaused) => setSteppingIsDisabled(!isPaused)} />
|
||||||
{/* <Button
|
{/* <Button
|
||||||
variant='outlined'
|
variant='outlined'
|
||||||
disabled={steppingIsDisabled}
|
disabled={steppingIsDisabled}
|
||||||
|
|||||||
Reference in New Issue
Block a user