mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2026-05-01 03:46:22 +00:00
Update system-overview.tsx
This commit is contained in:
@@ -159,17 +159,6 @@ const fetchProxmoxStorageData = async (): Promise<ProxmoxStorage[] | null> => {
|
|||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
const fetchProxmoxStorageData = async (): Promise<ProxmoxStorageData | null> => {
|
|
||||||
try {
|
|
||||||
const data = await fetchApi<ProxmoxStorageData>("/api/proxmox-storage")
|
|
||||||
return data
|
|
||||||
} catch (error) {
|
|
||||||
console.log("[v0] Proxmox storage API not available")
|
|
||||||
return null
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const getUnitsSettings = (): "Bytes" | "Bits" => {
|
const getUnitsSettings = (): "Bytes" | "Bits" => {
|
||||||
if (typeof window === "undefined") return "Bytes"
|
if (typeof window === "undefined") return "Bytes"
|
||||||
|
|||||||
Reference in New Issue
Block a user