mirror of
https://github.com/trezor/trezor-wallet
synced 2025-06-07 00:28:46 +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,
|
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…
Reference in New Issue
Block a user