@@ -14,6 +14,7 @@ import {
14
14
} from "@mui/material" ;
15
15
import { COMFORTABLE_DENSITY_FACTOR , COMPACT_DENSITY_FACTOR , getDataGridUtilityClass , gridClasses } from "@mui/x-data-grid" ;
16
16
import type { } from "@mui/x-data-grid/themeAugmentation" ;
17
+ import { FormattedMessage , FormattedNumber } from "react-intl" ;
17
18
18
19
import { DataGridPanel } from "../../dataGrid/DataGridPanel" ;
19
20
import { mergeOverrideStyles } from "../utils/mergeOverrideStyles" ;
@@ -72,20 +73,19 @@ export const getMuiDataGrid: GetMuiComponentTheme<"MuiDataGrid"> = (component, {
72
73
} ,
73
74
} ,
74
75
localeText : {
75
- // TODO: check typing
76
- paginationDisplayedRows : ( { from, to, count } ) => "todo" ,
77
- // (
78
- // <FormattedMessage
79
- // id="dataGrid.pagination.labelDisplayedRows"
80
- // defaultMessage="{from}–{to} of {formattedCount} {count, plural, one {item} other {items}}"
81
- // values={{
82
- // from: <FormattedNumber value={from} />,
83
- // to: <FormattedNumber value={to} />,
84
- // formattedCount: <FormattedNumber value={count} />,
85
- // count,
86
- // }}
87
- // />
88
- // ),
76
+ paginationDisplayedRows : ( { from, to, count } ) =>
77
+ (
78
+ < FormattedMessage
79
+ id = "dataGrid.pagination.labelDisplayedRows"
80
+ defaultMessage = "{from}–{to} of {formattedCount} {count, plural, one {item} other {items}}"
81
+ values = { {
82
+ from : < FormattedNumber value = { from } /> ,
83
+ to : < FormattedNumber value = { to } /> ,
84
+ formattedCount : < FormattedNumber value = { count } /> ,
85
+ count,
86
+ } }
87
+ />
88
+ ) as unknown as string ,
89
89
...component ?. defaultProps ?. localeText ,
90
90
} ,
91
91
} ,
0 commit comments