Browse Source

small addition

master
Anastasia Poupeney 7 years ago
parent
commit
64c92230e3
  1. 3
      src/components/modals/AccountSettingRenderBody.js

3
src/components/modals/AccountSettingRenderBody.js

@ -109,6 +109,7 @@ class HelperComp extends PureComponent<Props, State> {
handleRemoveAccount = (account: Account) => { handleRemoveAccount = (account: Account) => {
const { removeAccount } = this.props const { removeAccount } = this.props
removeAccount(account) removeAccount(account)
this.props.onClose()
} }
render() { render() {
@ -157,7 +158,7 @@ class HelperComp extends PureComponent<Props, State> {
</Container> </Container>
</ModalContent> </ModalContent>
<ModalFooter horizontal> <ModalFooter horizontal>
<Button small danger type="button" onClick={e => this.handleRemoveAccount(account)}> <Button small danger type="button" onClick={() => this.handleRemoveAccount(account)}>
{t('common:delete')} {t('common:delete')}
</Button> </Button>
<Button small ml="auto" type="submit" primary> <Button small ml="auto" type="submit" primary>

Loading…
Cancel
Save