{ this.renderNewDialog() }
+ { this.renderRestoreDialog() }
{ this.renderNewWalletDialog() }
{ this.renderActionbar() }
@@ -287,6 +290,17 @@ class Accounts extends Component {
}
onClick={ this.onNewWalletClick }
/>,
+
}
+ label={
+
+ }
+ onClick={ this.onRestoreAccountClick }
+ />,
+ );
+ }
+
+ renderRestoreDialog () {
+ const { accounts } = this.props;
+ const { restoreDialog } = this.state;
+
+ if (!restoreDialog) {
+ return null;
+ }
+
+ return (
+
);
}
@@ -367,6 +397,12 @@ class Accounts extends Component {
});
}
+ onRestoreAccountClick = () => {
+ this.setState({
+ restoreDialog: true
+ });
+ }
+
onNewWalletClick = () => {
this.setState({
newWalletDialog: true
@@ -379,15 +415,18 @@ class Accounts extends Component {
});
}
+ onRestoreAccountClose = () => {
+ this.setState({
+ restoreDialog: false
+ });
+ }
+
onNewWalletClose = () => {
this.setState({
newWalletDialog: false
});
}
- onNewAccountUpdate = () => {
- }
-
onHardwareChange = () => {
const { accountsInfo } = this.props;
const { wallets } = this.hwstore;