nitpick: remove unnecessary flowtype

pull/200/head
Szymon Lesisz 6 years ago
parent a0ff803c1d
commit bdc8eb070e

@ -15,22 +15,10 @@ export type Error = {
message: ?string,
};
export type SignVerifyState = {
signSignature: string,
signAddress: string,
signMessage: string,
signSignature: string,
verifyAddress: string,
verifyMessage: string,
verifySignature: string,
touched: Array<string>,
errors: Array<Error>
}
export type StateProps = {
wallet: $ElementType<State, 'wallet'>,
selectedAccount: $ElementType<State, 'selectedAccount'>,
signVerify: SignVerifyState,
signVerify: $ElementType<State, 'signVerify'>,
}
export type DispatchProps = {
@ -42,7 +30,7 @@ export type Props = StateProps & DispatchProps;
const mapStateToProps: MapStateToProps<State, OwnProps, StateProps> = (state: State): StateProps => ({
wallet: state.wallet,
selectedAccount: state.selectedAccount,
signVerify: state.signVerifyReducer,
signVerify: state.signVerify,
});
const mapDispatchToProps: MapDispatchToProps<Dispatch, OwnProps, DispatchProps> = (dispatch: Dispatch): DispatchProps => ({

@ -8,7 +8,7 @@ import Button from 'components/Button';
import Content from 'views/Wallet/components/Content';
import colors from 'config/colors';
import type { Props, SignVerifyState } from './Container';
import type { Props } from './Container';
const Wrapper = styled.div`
display: flex;
@ -45,7 +45,7 @@ const Verify = styled(Column)`
padding-left: 20px;
`;
class SignVerify extends Component <Props, SignVerifyState> {
class SignVerify extends Component <Props> {
getError(inputName: string) {
if (!this.props.signVerify) return null;
return this.props.signVerify.errors.find(e => e.inputName === inputName);

Loading…
Cancel
Save