mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-01-11 11:34:26 +00:00
303e44abb3
* [WIP] Start port of V3 Modal * allow lambda functions in React Components * lint code * add null case for modalRef * fix action test * reduce onboard slide boilerplate * delete images and componentize OnboardSlide * comment out info onboarding message * fix merge conflict * fix prettier error * revert tslint file * fix type in modal * add translations to onboard modal * add in images, fix stlyes
32 lines
832 B
TypeScript
32 lines
832 B
TypeScript
import * as interfaces from './actionTypes';
|
|
import { TypeKeys } from './constants';
|
|
|
|
export type TStartOnboardSession = typeof startOnboardSession;
|
|
export function startOnboardSession(): interfaces.StartOnboardSessionAction {
|
|
return {
|
|
type: TypeKeys.START_ONBOARD_SESSION
|
|
};
|
|
}
|
|
|
|
export type TResumeSlide = typeof resumeSlide;
|
|
export function resumeSlide(slideNumber: number): interfaces.ResumeSlideAction {
|
|
return {
|
|
type: TypeKeys.RESUME_SLIDE,
|
|
slideNumber
|
|
};
|
|
}
|
|
|
|
export type TDecrementSlide = typeof decrementSlide;
|
|
export function decrementSlide(): interfaces.DecrementSlideAction {
|
|
return {
|
|
type: TypeKeys.DECREMENT_SLIDE
|
|
};
|
|
}
|
|
|
|
export type TIncrementSlide = typeof incrementSlide;
|
|
export function incrementSlide(): interfaces.IncrementSlideAction {
|
|
return {
|
|
type: TypeKeys.INCREMENT_SLIDE
|
|
};
|
|
}
|