diff --git a/.changeset/five-tigers-run.md b/.changeset/five-tigers-run.md new file mode 100644 index 0000000000..2e2c9d5be0 --- /dev/null +++ b/.changeset/five-tigers-run.md @@ -0,0 +1,6 @@ +--- +"@comet/admin-theme": minor +--- + +Change `DataGrid`'s `noRowsLabel` from "No rows" to "No results found." + diff --git a/packages/admin/admin-theme/src/componentsTheme/MuiDataGrid.tsx b/packages/admin/admin-theme/src/componentsTheme/MuiDataGrid.tsx index 8dd59ce410..d766c009c3 100644 --- a/packages/admin/admin-theme/src/componentsTheme/MuiDataGrid.tsx +++ b/packages/admin/admin-theme/src/componentsTheme/MuiDataGrid.tsx @@ -12,7 +12,7 @@ import { TextField, TextFieldProps, } from "@mui/material"; -import { getDataGridUtilityClass } from "@mui/x-data-grid"; +import { getDataGridUtilityClass, GRID_DEFAULT_LOCALE_TEXT } from "@mui/x-data-grid"; import type {} from "@mui/x-data-grid/themeAugmentation"; import React from "react"; @@ -34,6 +34,9 @@ export const getMuiDataGrid: GetMuiComponentTheme<"MuiDataGrid"> = (component, { ColumnMenuIcon: (props: SvgIconProps) => , ...component?.defaultProps?.components, }, + localeText: { + noRowsLabel: GRID_DEFAULT_LOCALE_TEXT.noResultsOverlayLabel, + }, ...component?.defaultProps, }, styleOverrides: mergeOverrideStyles<"MuiDataGrid">(component?.styleOverrides, {