summaryrefslogtreecommitdiff
path: root/client/src/components
diff options
context:
space:
mode:
authorMichael Hunteman <michael@huntm.net>2024-10-21 19:12:46 -0700
committerMichael Hunteman <michael@huntm.net>2024-10-22 18:33:52 -0700
commitafd0719b93114540c52a0e1f0e39b3fa4d09f10a (patch)
treed50d65365b4feb1477810c3ea9aa3dde85cf3d58 /client/src/components
parent4eef63a00739af1f4fd87a9a4f5ad902f48553a0 (diff)
Use roboto font for table
Diffstat (limited to 'client/src/components')
-rw-r--r--client/src/components/Dashboard.tsx12
1 files changed, 11 insertions, 1 deletions
diff --git a/client/src/components/Dashboard.tsx b/client/src/components/Dashboard.tsx
index 56b50a2..119fc5d 100644
--- a/client/src/components/Dashboard.tsx
+++ b/client/src/components/Dashboard.tsx
@@ -6,8 +6,16 @@ import {
type MRT_ColumnDef,
} from 'material-react-table';
import type { Guest } from '../models';
+import { createTheme, ThemeProvider, useTheme } from '@mui/material';
function Dashboard() {
+ const tableTheme = createTheme({
+ ...useTheme(),
+ typography: {
+ fontFamily: ['Roboto', 'sans-serif'].join(','),
+ },
+ });
+
const guests: Guest[] = useOutletContext();
const columns = useMemo<MRT_ColumnDef<Guest>[]>(
() => [
@@ -67,7 +75,9 @@ function Dashboard() {
}}
>
<div style={{ marginTop: 128 }}>
- <MaterialReactTable table={table} />
+ <ThemeProvider theme={tableTheme}>
+ <MaterialReactTable table={table} />
+ </ThemeProvider>
</div>
</div>
);