refactor(client): centralise monospace font through the theme

Add a fontFamilyMonospace token to theme.typography (ui-monospace stack with sensible fallbacks) and route the four ad-hoc fontFamily="monospace" call sites through it so the project has one source of truth.
This commit is contained in:
gorkem-bwl committed 2026-04-26 01:22:01 -04:00
1 parent 82ad40ac82
commit c6db7e6479
4 files changed
+12 -6

No files matched your search

@@ -35,7 +35,7 @@ export const TableJobs = ({ jobs }: TableJobsProps) => {
content: t("common.table.headers.monitorId"),
render: (row) => (
<Typography
fontFamily="monospace"
fontFamily={theme.typography.fontFamilyMonospace}
title={String(row.monitorId)}
sx={cellSx}
>
@@ -137,7 +137,11 @@ export const TableFailedJobs = ({ metrics }: TableFailedJobsProps) => {
id: "monitorId",
content: t("common.table.headers.monitorId"),
render: (row) => {
return <Typography fontFamily={"monospace"}>{row.monitorId}</Typography>;
return (
<Typography fontFamily={theme.typography.fontFamilyMonospace}>
{row.monitorId}
</Typography>
);
},
},
{