select all + mobile table in all pages
This commit is contained in:
@@ -58,10 +58,12 @@ const Table = <T extends RowDataType>({
|
||||
};
|
||||
}, []);
|
||||
|
||||
// خروج از حالت انتخاب اگر هیچ آیتمی انتخاب نشده
|
||||
// خروج از حالت انتخاب اگر هیچ آیتمی انتخاب نشده، ورود اگر آیتمی انتخاب شده
|
||||
React.useEffect(() => {
|
||||
if (selectedRows.length === 0 && mobileSelectionMode) {
|
||||
setMobileSelectionMode(false);
|
||||
} else if (selectedRows.length > 0 && !mobileSelectionMode) {
|
||||
setMobileSelectionMode(true);
|
||||
}
|
||||
}, [selectedRows.length, mobileSelectionMode]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user