mirror of
https://github.com/Sea-Haven-Industries/seahaven-ap.git
synced 2026-10-02 06:13:23 +00:00
feat(web): add invoice grid lines and bold headers
Refs: AP-44
This commit is contained in:
parent
056239d186
commit
8b75835310
1 changed files with 19 additions and 5 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue