From 5b913d9820076cf5f5204d47f0a5eaa393ce29c7 Mon Sep 17 00:00:00 2001 From: Alex Holliday Date: Thu, 19 Sep 2024 08:18:16 +0800 Subject: [PATCH] Name anonymous export --- Client/src/Pages/Monitors/Home/MonitorTable/index.jsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Client/src/Pages/Monitors/Home/MonitorTable/index.jsx b/Client/src/Pages/Monitors/Home/MonitorTable/index.jsx index 5b5883440..2fbdf3ca6 100644 --- a/Client/src/Pages/Monitors/Home/MonitorTable/index.jsx +++ b/Client/src/Pages/Monitors/Home/MonitorTable/index.jsx @@ -106,7 +106,7 @@ TablePaginationActions.propTypes = { onPageChange: PropTypes.func.isRequired, }; -const MonitorTable = memo(({ isAdmin }) => { +const MonitorTable = ({ isAdmin }) => { const theme = useTheme(); const navigate = useNavigate(); const dispatch = useDispatch(); @@ -335,10 +335,11 @@ const MonitorTable = memo(({ isAdmin }) => { ); -}); +}; MonitorTable.propTypes = { isAdmin: PropTypes.bool, }; -export default MonitorTable; +const MemoizedMonitorTable = memo(MonitorTable); +export default MemoizedMonitorTable;