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:
parent
3b374e424e
commit
09c02160ea
@ -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,
|
||||
};
|
@ -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';
|
||||
|
Loading…
Reference in New Issue
Block a user