auto close session seed modal on copy

pull/1381/head
Audric Ackermann 5 years ago
parent cf401fb78e
commit 9192c7b7d3
No known key found for this signature in database
GPG Key ID: 999F434D76324AD4

@ -111,7 +111,6 @@ export class SessionSeedModal extends React.Component<Props, State> {
private renderSeedView() { private renderSeedView() {
const i18n = window.i18n; const i18n = window.i18n;
const { onClose } = this.props;
return ( return (
<> <>
@ -128,8 +127,6 @@ export class SessionSeedModal extends React.Component<Props, State> {
<div className="spacer-lg" /> <div className="spacer-lg" />
<div className="session-modal__button-group"> <div className="session-modal__button-group">
<SessionButton text={i18n('ok')} onClick={onClose} />
<SessionButton <SessionButton
text={i18n('copy')} text={i18n('copy')}
onClick={() => { onClick={() => {
@ -211,6 +208,7 @@ export class SessionSeedModal extends React.Component<Props, State> {
window.clipboard.writeText(recoveryPhrase); window.clipboard.writeText(recoveryPhrase);
ToastUtils.pushCopiedToClipBoard(); ToastUtils.pushCopiedToClipBoard();
this.props.onClose();
} }
private onEnter(event: any) { private onEnter(event: any) {

Loading…
Cancel
Save