feat: -rm useEffect

This commit is contained in:
karishmas6
2024-09-03 22:26:22 +05:30
parent 001286f5c6
commit 38d83bd6a9

View File

@@ -173,14 +173,6 @@ export const RightSidePanel = () => {
stopGetScreenshot();
};
useEffect(() => {
socket?.on('paginationSelected', handlePaginationSelection);
return () => {
socket?.off('paginationSelected', handlePaginationSelection);
};
}, [socket]);
return (
<Paper variant="outlined" sx={{ height: '100%', width: '100%', backgroundColor: 'white', alignItems: "center" }}>
<SimpleBox height={60} width='100%' background='lightGray' radius='0%'>