feat: handle pagination selection in use effect

This commit is contained in:
karishmas6
2024-09-01 22:48:20 +05:30
parent 8817657af0
commit 4669d40211

View File

@@ -184,6 +184,14 @@ export const RightSidePanel = () => {
stopGetScreenshot();
};
useEffect(() => {
const handlePaginationSelection = (data: { selector: string }) => {
setPaginationSelector(data.selector);
setIsSelectingPagination(false);
};
});
return (
<Paper variant="outlined" sx={{ height: '100%', width: '100%', backgroundColor: 'white', alignItems: "center" }}>
<SimpleBox height={60} width='100%' background='lightGray' radius='0%'>