feat(web): add invoice grid lines and bold headers

Refs: AP-44
This commit is contained in:
Adam Moussa 2026-08-11 15:20:30 -04:00
parent 056239d186
commit 8b75835310
No known key found for this signature in database

View file

@ -6,6 +6,7 @@ type MockDataGridProps<R extends GridValidRowModel> = DataGridProps<R> & {
export function MockDataGrid<R extends GridValidRowModel>({
"data-testid": testId,
sx,
...props
}: MockDataGridProps<R>) {
return (
@ -19,11 +20,24 @@ export function MockDataGrid<R extends GridValidRowModel>({
pagination: { paginationModel: { pageSize: 10, page: 0 } },
}}
getRowId={(row) => row.id as string}
sx={{
border: 1,
borderColor: "divider",
backgroundColor: "background.paper",
}}
sx={[
{
border: 1,
borderColor: "divider",
backgroundColor: "background.paper",
"& .MuiDataGrid-columnHeaderTitle": {
fontWeight: 700,
},
"& .MuiDataGrid-cell": {
borderBottom: "1px solid",
borderColor: "divider",
},
"& .MuiDataGrid-row:last-of-type .MuiDataGrid-cell": {
borderBottom: "none",
},
},
...(Array.isArray(sx) ? sx : sx ? [sx] : []),
]}
{...props}
/>
</div>