From 97d3622d9c5b60a5059934e46619f527e313f35c Mon Sep 17 00:00:00 2001 From: "jason.lam" Date: Tue, 23 Jan 2024 17:29:47 +0800 Subject: [PATCH] update label --- src/components/FiDataGrid.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/components/FiDataGrid.js b/src/components/FiDataGrid.js index a2ca107..f1a1f05 100644 --- a/src/components/FiDataGrid.js +++ b/src/components/FiDataGrid.js @@ -114,17 +114,12 @@ export function FiDataGrid({ rows, columns, sx, autoHeight, labelDisplayedRows={({ from, to, count }) => `${from}-${to} ${intl.formatMessage({ id: "of" })} ${count}` } - labelRowsPerPage={} + labelRowsPerPage={intl.formatMessage({ id: "rowsPerPage" }) + ":"} onPageChange={handleChangePage} onRowsPerPageChange={handleChangePageSize} /> ), }} - componentsProps={{ - pagination: { - labelRowsPerPage: intl.formatMessage({ id: "rowsPerPage" }) + ":", - }, - }} /> );