mirror of
https://github.com/rustmailer/bichon.git
synced 2026-08-03 07:48:34 +02:00
Update index.tsx
This commit is contained in:
@@ -35,10 +35,10 @@ import { get_system_configurations } from "@/api/system/api"
|
|||||||
import { useQuery } from "@tanstack/react-query"
|
import { useQuery } from "@tanstack/react-query"
|
||||||
import { useTranslation } from "react-i18next"
|
import { useTranslation } from "react-i18next"
|
||||||
|
|
||||||
const formatMB = (bytes?: number) => {
|
// const formatMB = (bytes?: number) => {
|
||||||
if (!bytes) return "—"
|
// if (!bytes) return "—"
|
||||||
return `${(bytes / 1024 / 1024).toFixed(0)} MB`
|
// return `${(bytes / 1024 / 1024).toFixed(0)} MB`
|
||||||
}
|
// }
|
||||||
|
|
||||||
function BooleanBadge({ value }: { value: boolean }) {
|
function BooleanBadge({ value }: { value: boolean }) {
|
||||||
const { t } = useTranslation()
|
const { t } = useTranslation()
|
||||||
|
|||||||
Reference in New Issue
Block a user