formatting

This commit is contained in:
proddy
2025-11-05 09:00:27 +01:00
parent 2ee433bb89
commit 10d85c6547
3 changed files with 2 additions and 3 deletions

View File

@@ -284,7 +284,6 @@ const Version = () => {
const [downloadOnly, setDownloadOnly] = useState<boolean>(false); const [downloadOnly, setDownloadOnly] = useState<boolean>(false);
const [showVersionInfo, setShowVersionInfo] = useState<number>(0); const [showVersionInfo, setShowVersionInfo] = useState<number>(0);
// API calls with optimized error handling
const { send: sendCheckUpgrade } = useRequest( const { send: sendCheckUpgrade } = useRequest(
(versions: string) => callAction({ action: 'checkUpgrade', param: versions }), (versions: string) => callAction({ action: 'checkUpgrade', param: versions }),
{ immediate: false } { immediate: false }

View File

@@ -1,4 +1,4 @@
// Optimized exports - use direct exports to reduce bundle size // use direct exports to reduce bundle size
export { default as SectionContent } from './SectionContent'; export { default as SectionContent } from './SectionContent';
export { default as ButtonRow } from './ButtonRow'; export { default as ButtonRow } from './ButtonRow';
export { default as MessageBox } from './MessageBox'; export { default as MessageBox } from './MessageBox';

View File

@@ -7,7 +7,7 @@ const VALID_EXTENSIONS = new Set(['bin', 'json', 'md5']);
const ONE_SECOND_MS = 1000; const ONE_SECOND_MS = 1000;
const TEN_PERCENT = 10; const TEN_PERCENT = 10;
// Optimized padding function // padding function
const pad = (number) => String(number).padStart(2, '0'); const pad = (number) => String(number).padStart(2, '0');
// Simple throttle helper (time-based) // Simple throttle helper (time-based)