Skip to content

Commit

Permalink
feat(DataGrid): replace noRowsLabel in theme with 'No results found'
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasdax98 committed Dec 28, 2023
1 parent b658e5b commit 1fd4693
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .changeset/five-tigers-run.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@comet/admin-theme": minor
---

Change `DataGrid`'s `noRowsLabel` from "No rows" to "No results found"

Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ export const getMuiDataGrid: GetMuiComponentTheme<"MuiDataGrid"> = (component, {
ColumnMenuIcon: (props: SvgIconProps) => <MoreVertical {...props} fontSize="medium" />,
...component?.defaultProps?.components,
},
localeText: {
noRowsLabel: "No results found",
},
...component?.defaultProps,
},
styleOverrides: mergeOverrideStyles<"MuiDataGrid">(component?.styleOverrides, {
Expand Down

0 comments on commit 1fd4693

Please sign in to comment.