PromucFlow_constructor/app/client/src/actions/tourActions.ts
2021-05-20 17:33:08 +05:30

23 lines
596 B
TypeScript

import { ReduxActionTypes } from "constants/ReduxActionConstants";
import { TourType } from "entities/Tour";
export const setActiveTour = (tourType: TourType) => ({
type: ReduxActionTypes.SET_ACTIVE_TOUR,
payload: tourType,
});
export const resetActiveTour = () => ({
type: ReduxActionTypes.RESET_ACTIVE_TOUR,
payload: undefined,
});
export const setActiveTourIndex = (index: number) => ({
type: ReduxActionTypes.SET_ACTIVE_TOUR_INDEX,
payload: index,
});
export const proceedToNextTourStep = () => ({
type: ReduxActionTypes.PROCEED_TO_NEXT_TOUR_STEP,
payload: undefined,
});