mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-11-18 03:26:17 +00:00
Update system-logs.tsx
This commit is contained in:
@@ -95,13 +95,13 @@ interface CombinedLogEntry {
|
|||||||
sortTimestamp: number
|
sortTimestamp: number
|
||||||
}
|
}
|
||||||
|
|
||||||
// ADDED: Props interface
|
// MODIFIED: Fixed props interface - nodeName is already optional
|
||||||
interface SystemLogsProps {
|
interface SystemLogsProps {
|
||||||
nodeName?: string
|
nodeName?: string
|
||||||
}
|
}
|
||||||
|
|
||||||
// MODIFIED: Added props destructuring
|
// MODIFIED: Fixed function signature - removed incorrect default value syntax
|
||||||
export function SystemLogs({ nodeName }: SystemLogsProps = {}) {
|
export function SystemLogs({ nodeName }: SystemLogsProps) {
|
||||||
const [logs, setLogs] = useState<SystemLog[]>([])
|
const [logs, setLogs] = useState<SystemLog[]>([])
|
||||||
const [backups, setBackups] = useState<Backup[]>([])
|
const [backups, setBackups] = useState<Backup[]>([])
|
||||||
const [events, setEvents] = useState<Event[]>([])
|
const [events, setEvents] = useState<Event[]>([])
|
||||||
|
|||||||
Reference in New Issue
Block a user