fix flowtype warning (default export in actions)

pull/200/head
Szymon Lesisz 6 years ago
parent 3b374e424e
commit 09c02160ea

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

@ -3,7 +3,7 @@
import { bindActionCreators } from 'redux'; import { bindActionCreators } from 'redux';
import { connect } from 'react-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 { MapStateToProps, MapDispatchToProps } from 'react-redux';
import type { State, Dispatch } from 'flowtype'; import type { State, Dispatch } from 'flowtype';
import Component from './index'; import Component from './index';

Loading…
Cancel
Save