diff --git a/src/components/molecules/InterpretationLog.tsx b/src/components/molecules/InterpretationLog.tsx index 800aac83..3feda80c 100644 --- a/src/components/molecules/InterpretationLog.tsx +++ b/src/components/molecules/InterpretationLog.tsx @@ -20,12 +20,16 @@ import TableRow from '@mui/material/TableRow'; import Paper from '@mui/material/Paper'; import StorageIcon from '@mui/icons-material/Storage'; -export const InterpretationLog = () => { - const [open, setOpen] = useState(false); +interface InterpretationLogProps { + isOpen: boolean; + setIsOpen: (isOpen: boolean) => void; +} + +export const InterpretationLog: React.FC = ({ isOpen, setIsOpen }) => { const [log, setLog] = useState(''); const [selectedOption, setSelectedOption] = useState('10'); const [customValue, setCustomValue] = useState(''); - const [tableData, setTableData] = useState([]); // State for table data + const [tableData, setTableData] = useState([]); const logEndRef = useRef(null); @@ -40,7 +44,7 @@ export const InterpretationLog = () => { ) { return; } - setOpen(newOpen); + setIsOpen(newOpen); }; const scrollLogToBottom = () => { @@ -117,7 +121,7 @@ export const InterpretationLog = () => {