diff --git a/interface/src/framework/system/SystemLog.tsx b/interface/src/framework/system/SystemLog.tsx index 8d44f7603..26b9544cc 100644 --- a/interface/src/framework/system/SystemLog.tsx +++ b/interface/src/framework/system/SystemLog.tsx @@ -18,18 +18,18 @@ import { useRest, updateValueDirty, extractErrorMessage } from 'utils'; export const LOG_EVENTSOURCE_URL = EVENT_SOURCE_ROOT + 'log'; -const useWindowSize = () => { - const [size, setSize] = useState([0, 0]); - useLayoutEffect(() => { - function updateSize() { - setSize([window.innerWidth, window.innerHeight]); - } - window.addEventListener('resize', updateSize); - updateSize(); - return () => window.removeEventListener('resize', updateSize); - }, []); - return size; -}; +// const useWindowSize = () => { +// const [size, setSize] = useState([0, 0]); +// useLayoutEffect(() => { +// function updateSize() { +// setSize([window.innerWidth, window.innerHeight]); +// } +// window.addEventListener('resize', updateSize); +// updateSize(); +// return () => window.removeEventListener('resize', updateSize); +// }, []); +// return size; +// }; const LogEntryLine = styled('div')(() => ({ color: '#bbbbbb', @@ -62,7 +62,7 @@ const levelLabel = (level: LogLevel) => { }; const SystemLog: FC = () => { - useWindowSize(); + // useWindowSize(); const { LL } = useI18nContext(); @@ -238,7 +238,7 @@ const SystemLog: FC = () => {