Reset to voting screen when done
This commit is contained in:
committed by
Jacob Evans
parent
155b5dd42f
commit
7f616356d2
@@ -188,7 +188,7 @@ export class ModalVote extends React.Component<Props> {
|
|||||||
<Paragraph isMuted={true} color={colors.textDarkPrimary}>
|
<Paragraph isMuted={true} color={colors.textDarkPrimary}>
|
||||||
You voted from {selectedAddress} with {formattedBalance} ZRX
|
You voted from {selectedAddress} with {formattedBalance} ZRX
|
||||||
</Paragraph>
|
</Paragraph>
|
||||||
<Button type="button" onClick={this.props.onDismiss}>
|
<Button type="button" onClick={this._onDone.bind(this)}>
|
||||||
Done
|
Done
|
||||||
</Button>
|
</Button>
|
||||||
</Confirmation>
|
</Confirmation>
|
||||||
@@ -286,6 +286,13 @@ export class ModalVote extends React.Component<Props> {
|
|||||||
this.props.onVoted();
|
this.props.onVoted();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
private _onDone(): void {
|
||||||
|
this.setState({
|
||||||
|
isSuccessful: false,
|
||||||
|
});
|
||||||
|
|
||||||
|
this.props.onDismiss();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Handle errors: {"errors":[{"location":"body","param":"name","msg":"Invalid value"},{"location":"body","param":"email","msg":"Invalid value"}]}
|
// Handle errors: {"errors":[{"location":"body","param":"name","msg":"Invalid value"},{"location":"body","param":"email","msg":"Invalid value"}]}
|
||||||
|
Reference in New Issue
Block a user