diff --git a/web/containers/Layout/BottomPanel/SystemMonitor/index.tsx b/web/containers/Layout/BottomPanel/SystemMonitor/index.tsx index ae91cfa9d3..14055b5352 100644 --- a/web/containers/Layout/BottomPanel/SystemMonitor/index.tsx +++ b/web/containers/Layout/BottomPanel/SystemMonitor/index.tsx @@ -1,7 +1,6 @@ import { Fragment, useCallback, useState } from 'react' import { Progress } from '@janhq/joi' -import { useClickOutside } from '@janhq/joi' import { useAtom, useAtomValue } from 'jotai' import { MonitorIcon, @@ -44,23 +43,11 @@ const SystemMonitor = () => { const [showSystemMonitorPanel, setShowSystemMonitorPanel] = useAtom( showSystemMonitorPanelAtom ) - const [control, setControl] = useState(null) - const [elementExpand, setElementExpand] = useState( - null - ) + const reduceTransparent = useAtomValue(reduceTransparentAtom) const { watch, stopWatching } = useGetSystemResources() - useClickOutside( - () => { - toggleShowSystemMonitorPanel(false) - setShowFullScreen(false) - }, - null, - [control, elementExpand] - ) - const toggleShowSystemMonitorPanel = useCallback( (isShow: boolean) => { setShowSystemMonitorPanel(isShow) @@ -76,7 +63,6 @@ const SystemMonitor = () => { return (
{
{showSystemMonitorPanel && (