Name anonymous export

This commit is contained in:
Alex Holliday committed 2024-09-19 08:18:16 +08:00
1 parent 0aebad2512
commit 5b913d9820
1 file changed
+4 -3
@@ -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 }) => {
</Stack>
</>
);
});
};
MonitorTable.propTypes = {
isAdmin: PropTypes.bool,
};
export default MonitorTable;
const MemoizedMonitorTable = memo(MonitorTable);
export default MemoizedMonitorTable;