Use status components for true/false things

This commit is contained in:
Jamie Curnow
2025-10-27 23:25:00 +10:00
parent fac5f2cbc5
commit 0f718570d6
12 changed files with 60 additions and 53 deletions

View File

@@ -8,7 +8,7 @@ import {
DomainsFormatter,
EmptyData,
GravatarFormatter,
StatusFormatter,
TrueFalseFormatter,
} from "src/components";
import { TableLayout } from "src/components/Table/TableLayout";
import { intl, T } from "src/locale";
@@ -70,7 +70,7 @@ export default function Table({ data, isFetching, onEdit, onDelete, onDisableTog
id: "enabled",
header: intl.formatMessage({ id: "column.status" }),
cell: (info: any) => {
return <StatusFormatter enabled={info.getValue()} />;
return <TrueFalseFormatter value={info.getValue()} trueLabel="online" falseLabel="offline" />;
},
}),
columnHelper.display({