feat: -rm useEffect
This commit is contained in:
@@ -173,14 +173,6 @@ export const RightSidePanel = () => {
|
|||||||
stopGetScreenshot();
|
stopGetScreenshot();
|
||||||
};
|
};
|
||||||
|
|
||||||
useEffect(() => {
|
|
||||||
socket?.on('paginationSelected', handlePaginationSelection);
|
|
||||||
|
|
||||||
return () => {
|
|
||||||
socket?.off('paginationSelected', handlePaginationSelection);
|
|
||||||
};
|
|
||||||
}, [socket]);
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Paper variant="outlined" sx={{ height: '100%', width: '100%', backgroundColor: 'white', alignItems: "center" }}>
|
<Paper variant="outlined" sx={{ height: '100%', width: '100%', backgroundColor: 'white', alignItems: "center" }}>
|
||||||
<SimpleBox height={60} width='100%' background='lightGray' radius='0%'>
|
<SimpleBox height={60} width='100%' background='lightGray' radius='0%'>
|
||||||
|
|||||||
Reference in New Issue
Block a user