// @flow import React from 'react'; import { Modal } from 'modal/modal'; import { deleteSavedPassword } from 'util/saved-passwords'; type Props = { closeModal: () => void, callback?: () => void, }; class ModalPasswordUnsave extends React.PureComponent { render() { return ( deleteSavedPassword().then(() => { this.props.closeModal(); if (this.props.callback) { this.props.callback(); } }) } onAborted={this.props.closeModal} >

{__('You are about to delete your saved password.')}{' '} {__('Your wallet will still be encrypted, but you will have to remember and enter it manually on startup.')}

); } } export default ModalPasswordUnsave;