Skip to content

Commit

Permalink
Use GRID_DEFAULT_LOCALE_TEXT for noRowsLabel instead of string literal
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasdax98 committed Jan 18, 2024
1 parent 1fd4693 commit 41b43c8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand All @@ -35,7 +35,7 @@ export const getMuiDataGrid: GetMuiComponentTheme<"MuiDataGrid"> = (component, {
...component?.defaultProps?.components,
},
localeText: {
noRowsLabel: "No results found",
noRowsLabel: GRID_DEFAULT_LOCALE_TEXT.noResultsOverlayLabel,
},
...component?.defaultProps,
},
Expand Down

0 comments on commit 41b43c8

Please sign in to comment.