This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* @flow */ | |
import * as React from 'react' | |
import type { ComponentType, ElementConfig } from 'react' | |
declare type Action = { type: string } | |
declare type Dispatch = (arg: Action | Array<Action>) => mixed | |
declare type MapStateToProps<S, OP, SP> = (state: S, ownProps: OP) => SP | |
declare type MapDispatchToProps<OP, DP> = (dispatch: Dispatch, ownProps: OP) => DP | |
declare type MergeProps<SP, DP, OP, MP> = (stateProps: SP, dispatchProps: DP, ownProps: OP) => MP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const transactionMachine = Machine({ | |
id: 'transaction', | |
initial: 'draft', | |
states: { | |
draft: { | |
on: { | |
AUTHORIZE_PAYMENT: { | |
target: 'authorizing', | |
}, | |
ADD_ITEM: { |
OlderNewer