feat: add pagination and limit options
This commit is contained in:
@@ -15,6 +15,10 @@ interface ActionContextProps {
|
|||||||
limitType: LimitType;
|
limitType: LimitType;
|
||||||
customLimit: string;
|
customLimit: string;
|
||||||
captureStage: CaptureStage;
|
captureStage: CaptureStage;
|
||||||
|
showPaginationOptions: boolean;
|
||||||
|
showLimitOptions: boolean;
|
||||||
|
setShowPaginationOptions: (show: boolean) => void;
|
||||||
|
setShowLimitOptions: (show: boolean) => void;
|
||||||
setCaptureStage: (stage: CaptureStage) => void;
|
setCaptureStage: (stage: CaptureStage) => void;
|
||||||
startPaginationMode: () => void;
|
startPaginationMode: () => void;
|
||||||
startGetText: () => void;
|
startGetText: () => void;
|
||||||
@@ -43,6 +47,8 @@ export const ActionProvider = ({ children }: { children: ReactNode }) => {
|
|||||||
const [limitType, setLimitType] = useState<LimitType>('');
|
const [limitType, setLimitType] = useState<LimitType>('');
|
||||||
const [customLimit, setCustomLimit] = useState<string>('');
|
const [customLimit, setCustomLimit] = useState<string>('');
|
||||||
const [captureStage, setCaptureStage] = useState<CaptureStage>('initial');
|
const [captureStage, setCaptureStage] = useState<CaptureStage>('initial');
|
||||||
|
const [showPaginationOptions, setShowPaginationOptions] = useState(false);
|
||||||
|
const [showLimitOptions, setShowLimitOptions] = useState(false);
|
||||||
|
|
||||||
const { socket } = useSocketStore();
|
const { socket } = useSocketStore();
|
||||||
|
|
||||||
@@ -96,6 +102,10 @@ export const ActionProvider = ({ children }: { children: ReactNode }) => {
|
|||||||
limitType,
|
limitType,
|
||||||
customLimit,
|
customLimit,
|
||||||
captureStage,
|
captureStage,
|
||||||
|
showPaginationOptions,
|
||||||
|
showLimitOptions,
|
||||||
|
setShowPaginationOptions,
|
||||||
|
setShowLimitOptions,
|
||||||
setCaptureStage,
|
setCaptureStage,
|
||||||
startGetText,
|
startGetText,
|
||||||
stopGetText,
|
stopGetText,
|
||||||
|
|||||||
Reference in New Issue
Block a user