fix: revert start/stop pagination mode
This commit is contained in:
@@ -27,16 +27,9 @@ export const ActionProvider = ({ children }: { children: ReactNode }) => {
|
|||||||
const [getScreenshot, setGetScreenshot] = useState<boolean>(false);
|
const [getScreenshot, setGetScreenshot] = useState<boolean>(false);
|
||||||
const [paginationMode, setPaginationMode] = useState<boolean>(false);
|
const [paginationMode, setPaginationMode] = useState<boolean>(false);
|
||||||
const [paginationType, setPaginationType] = useState<PaginationType>('');
|
const [paginationType, setPaginationType] = useState<PaginationType>('');
|
||||||
const updatePaginationType = (type: PaginationType) => setPaginationType(type);
|
|
||||||
|
|
||||||
const startPaginationMode = (type: PaginationType) => {
|
const startPaginationMode = () => setPaginationMode(true);
|
||||||
setPaginationMode(true);
|
const stopPaginationMode = () => setPaginationMode(false);
|
||||||
setPaginationType(type);
|
|
||||||
};
|
|
||||||
const stopPaginationMode = () => {
|
|
||||||
setPaginationMode(false);
|
|
||||||
setPaginationType('');
|
|
||||||
};
|
|
||||||
|
|
||||||
const startGetText = () => setGetText(true);
|
const startGetText = () => setGetText(true);
|
||||||
const stopGetText = () => setGetText(false);
|
const stopGetText = () => setGetText(false);
|
||||||
|
|||||||
Reference in New Issue
Block a user