From 859b21860959484659edbb7363bdde3ce6050b78 Mon Sep 17 00:00:00 2001 From: proddy Date: Sun, 8 Sep 2024 19:55:34 +0200 Subject: [PATCH] formatting --- interface/src/app/status/SystemLog.tsx | 50 ++++++++++++++------------ 1 file changed, 28 insertions(+), 22 deletions(-) diff --git a/interface/src/app/status/SystemLog.tsx b/interface/src/app/status/SystemLog.tsx index bf1daebb3..436bbb323 100644 --- a/interface/src/app/status/SystemLog.tsx +++ b/interface/src/app/status/SystemLog.tsx @@ -6,8 +6,12 @@ import WarningIcon from '@mui/icons-material/Warning'; import { Box, Button, Checkbox, MenuItem, TextField, styled } from '@mui/material'; import Grid from '@mui/material/Grid2'; -import * as SystemApi from 'api/system'; -import { fetchLogES } from 'api/system'; +import { + fetchLog, + fetchLogES, + readLogSettings, + updateLogSettings +} from 'api/system'; import { useRequest, useSSE } from 'alova/client'; import { @@ -77,8 +81,8 @@ const SystemLog = () => { saveData, errorMessage } = useRest({ - read: SystemApi.readLogSettings, - update: SystemApi.updateLogSettings + read: readLogSettings, + update: updateLogSettings }); const [logEntries, setLogEntries] = useState([]); @@ -112,7 +116,7 @@ const SystemLog = () => { }); // called on page load to reset pointer and fetch all log entries - useRequest(SystemApi.fetchLog()); + useRequest(fetchLog()); const paddedLevelLabel = (level: LogLevel) => { const label = levelLabel(level); @@ -188,23 +192,25 @@ const SystemLog = () => { ALL - - - 25 - 50 - 75 - 100 - - + {data.psram && ( + + + 25 + 50 + 75 + 100 + + + )}