feat: socket for pagination selection

This commit is contained in:
karishmas6
2024-09-01 22:49:38 +05:30
parent 4669d40211
commit f8ea80a18a

View File

@@ -190,7 +190,12 @@ export const RightSidePanel = () => {
setIsSelectingPagination(false); setIsSelectingPagination(false);
}; };
}); 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" }}>