1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-11-13 20:08:56 +00:00

fix flowtype warning (default export in actions)

This commit is contained in:
Szymon Lesisz 2018-11-21 14:47:04 +01:00
parent 3b374e424e
commit 09c02160ea
2 changed files with 10 additions and 4 deletions

View File

@ -13,7 +13,7 @@ export type SignVerifyAction = {
type: typeof SIGN_VERIFY.CLEAR,
}
export const sign = (
const sign = (
path: Array<number>,
message: string,
hex: boolean = false,
@ -58,7 +58,7 @@ export const sign = (
}
};
export const verify = (
const verify = (
address: string,
message: string,
signature: string,
@ -111,8 +111,14 @@ export const verify = (
}
};
export const clear = (): ThunkAction => (dispatch: Dispatch): void => {
const clear = (): ThunkAction => (dispatch: Dispatch): void => {
dispatch({
type: SIGN_VERIFY.CLEAR,
});
};
export default {
sign,
verify,
clear,
};

View File

@ -3,7 +3,7 @@
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import * as SignVerifyActions from 'actions/SignVerifyActions';
import SignVerifyActions from 'actions/SignVerifyActions';
import type { MapStateToProps, MapDispatchToProps } from 'react-redux';
import type { State, Dispatch } from 'flowtype';
import Component from './index';