mirror of https://github.com/trezor/trezor-wallet
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.
25 lines
470 B
25 lines
470 B
![]()
6 years ago
|
/* @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;
|
||
|
}
|
||
|
};
|