You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
trezor-wallet/src/reducers/SignVerifyReducer.js

25 lines
470 B

/* @flow */
import type { Action } from 'flowtype';
import type { NetworkToken } from './LocalStorageReducer';
export type State = {
details: boolean;
selectedToken: ?NetworkToken;
}
const SIGN = 'sign';
export const initialState: State = {
};
export default (state: State = initialState, action: Action): State => {
switch (action.type) {
case SIGN.SUCCESS:
return initialState;
default:
return state;
}
};