Improve "Updates" render performance
This commit is contained in:
@@ -8,7 +8,10 @@
|
||||
|
||||
import Box from '@mui/material/Box';
|
||||
import { styled } from '@mui/material/styles';
|
||||
import { memo } from 'react';
|
||||
|
||||
export const StyledGroupItemWrapper = styled(Box)(({ theme }) => ({
|
||||
padding: theme.spacing(0, 1, 1, 1),
|
||||
}));
|
||||
export const StyledGroupItemWrapper = memo(
|
||||
styled(Box)(({ theme }) => ({
|
||||
padding: theme.spacing(0, 1, 1, 1),
|
||||
})),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user