game/js/registrationTraining/redux/actions.js

18 lines
403 B
JavaScript
Raw Normal View History

2022-12-19 20:22:19 +00:00
import { SET_STEP, ALLOW_RENDER, CLEAN_STATE } from './types.js';
/**
* @returns {{type: CLEAN_STATE}}
*/
export const cleanState = () => ({ type: CLEAN_STATE });
/**
* @returns {{type: ALLOW_RENDER}}
*/
export const allowRender = () => ({ type: ALLOW_RENDER });
/**
* @param {number} step
* @returns {{type: SET_STEP}}
*/
export const setStep = (step) => ({ type: SET_STEP, payload: step });