Add ability to save seed words as file.

feature/default_network_editable
Kevin Serrano 7 years ago
parent aa021b9209
commit e7c1a11b4d
No known key found for this signature in database
GPG Key ID: BF999DEFC7371BA1
  1. 10
      ui/app/keychains/hd/create-vault-complete.js

@ -3,6 +3,7 @@ const Component = require('react').Component
const connect = require('react-redux').connect
const h = require('react-hyperscript')
const actions = require('../../actions')
const exportAsFile = require('../../util').exportAsFile
module.exports = connect(mapStateToProps)(CreateVaultCompleteScreen)
@ -65,8 +66,17 @@ CreateVaultCompleteScreen.prototype.render = function () {
style: {
margin: '24px',
fontSize: '0.9em',
marginBottom: '10px',
},
}, 'I\'ve copied it somewhere safe'),
h('button.primary', {
onClick: () => exportAsFile(`MetaMask Seed Words`, seed),
style: {
margin: '10px',
fontSize: '0.9em',
},
}, 'Save Seed Words As File'),
])
)
}

Loading…
Cancel
Save