Skip to content

Commit 766252e

Browse files
Check styles with TypeScript
1 parent 8fc20b2 commit 766252e

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"dependencies": {
1717
"@emotion/react": "^11.14.0",
1818
"@emotion/styled": "^11.14.0",
19-
"@gridsuite/commons-ui": "0.120.0",
19+
"@gridsuite/commons-ui": "file:../commons-ui/gridsuite-commons-ui-0.121.0.tgz",
2020
"@hookform/resolvers": "^4.0.0",
2121
"@mui/icons-material": "^5.16.14",
2222
"@mui/lab": "5.0.0-alpha.175",

src/components/Grid/AgGrid.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import {
1717
useRef,
1818
} from 'react';
1919
import { AgGridReact } from 'ag-grid-react';
20-
import { CustomAGGrid, type CustomAGGridProps } from '@gridsuite/commons-ui';
20+
import { CustomAGGrid, type CustomAGGridProps, type SxStyle } from '@gridsuite/commons-ui';
2121
import { useDebugRender } from '../../utils/hooks';
2222

2323
type AccessibleAgGridReact<TData> = Omit<
@@ -50,7 +50,7 @@ const style = {
5050
'@media print': {
5151
pageBreakInside: 'avoid',
5252
},
53-
};
53+
} as const satisfies SxStyle;
5454

5555
// TODO move type generic restoration to commons-ui
5656
// TODO move useDebug feature from env to commons-ui

src/pages/common/multi-chip-cell-renderer.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
import React, { useRef, useState, useEffect } from 'react';
99
import { Chip, Grid, Tooltip } from '@mui/material';
10-
import { mergeSx } from '@gridsuite/commons-ui';
10+
import { mergeSx, type MuiStyles } from '@gridsuite/commons-ui';
1111

1212
const maxChipWidth = 100;
1313
const counterChipWidth = 25;
@@ -23,7 +23,7 @@ const chipStyles = {
2323
fontWeight: 'bold',
2424
},
2525
},
26-
};
26+
} as const satisfies MuiStyles;
2727

2828
export interface MultiChipCellRendererProps {
2929
value: string[];

0 commit comments

Comments
 (0)