From cc1a766ca76aa3f7abff02a1ef21651f968451b0 Mon Sep 17 00:00:00 2001 From: Jandson Vitorino Date: Tue, 12 Sep 2023 22:52:46 -0300 Subject: [PATCH] Closes #199 - Now, while the table preview file is loaded, the message 'Loading...' is displayed instead of 'No rows' --- frontend/components/ProductDataGrid.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/components/ProductDataGrid.js b/frontend/components/ProductDataGrid.js index 6f2c8d5..6a7bbcd 100644 --- a/frontend/components/ProductDataGrid.js +++ b/frontend/components/ProductDataGrid.js @@ -93,6 +93,9 @@ export default function ProductDataGrid(props) { loading={isLoading} disableColumnMenu disableColumnSelector + localeText={{ + noRowsLabel: isLoading ? 'No rows' : 'Loading...', + }} /> )}