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
|
||||
}
|
||||
|
||||
// ADDED: Props interface
|
||||
// MODIFIED: Fixed props interface - nodeName is already optional
|
||||
interface SystemLogsProps {
|
||||
nodeName?: string
|
||||
}
|
||||
|
||||
// MODIFIED: Added props destructuring
|
||||
export function SystemLogs({ nodeName }: SystemLogsProps = {}) {
|
||||
// MODIFIED: Fixed function signature - removed incorrect default value syntax
|
||||
export function SystemLogs({ nodeName }: SystemLogsProps) {
|
||||
const [logs, setLogs] = useState<SystemLog[]>([])
|
||||
const [backups, setBackups] = useState<Backup[]>([])
|
||||
const [events, setEvents] = useState<Event[]>([])
|
||||
|
||||
Reference in New Issue
Block a user