fix(wallet view): Rewording and removing non-functional WIF import

This commit is contained in:
Chris Troutner
2020-07-10 09:05:55 -07:00
parent e15b2f3c93
commit a7f1cd4fcc
2 changed files with 40 additions and 33 deletions
+35 -28
View File
@@ -18,66 +18,57 @@ class ImportWallet extends React.Component {
privateKey: '',
errMsg: '',
inFetch: false
}
_this.BchWallet = BchWallet
}
render () {
return (
<Row className=''>
<Row className="">
<Col sm={2} />
<Col sm={8}>
<Box
className='hover-shadow border-none mt-2'
className="hover-shadow border-none mt-2"
loaded={!_this.state.inFetch}
>
<Row>
<Col sm={12} className='text-center'>
<Col sm={12} className="text-center">
<h1>
<FontAwesomeIcon
className='title-icon'
size='xs'
icon='file-import'
className="title-icon"
size="xs"
icon="file-import"
/>
<span>Import Wallet</span>
</h1>
</Col>
<Col sm={12} className='text-center mt-2 mb-2'>
<Row className='flex justify-content-center'>
<Col sm={12} className="text-center mt-2 mb-2">
<Row className="flex justify-content-center">
<Col sm={8}>
<div>
<Text
id='import-mnemonic'
name='mnemonic'
placeholder='12 word mnemonic'
label='12 word mnemonic'
labelPosition='above'
onChange={_this.handleUpdate}
/>
<Text
id='privateKey'
name='privateKey'
placeholder='Private Key'
label='Private Key'
labelPosition='above'
id="import-mnemonic"
name="mnemonic"
placeholder="12 word mnemonic"
label="12 word mnemonic"
labelPosition="above"
onChange={_this.handleUpdate}
/>
</div>
</Col>
</Row>
</Col>
<Col sm={12} className='text-center'>
<Col sm={12} className="text-center">
{_this.state.errMsg && (
<p className='error-color'>{_this.state.errMsg}</p>
<p className="error-color">{_this.state.errMsg}</p>
)}
</Col>
<Col sm={12} className='text-center mt-2 mb-2'>
<Col sm={12} className="text-center mt-2 mb-2">
<Button
text='Import'
type='primary'
className='btn-lg'
text="Import"
type="primary"
className="btn-lg"
onClick={_this.handleImportWallet}
/>
</Col>
@@ -201,3 +192,19 @@ ImportWallet.propTypes = {
}
export default ImportWallet
/*
CT 07/10/2020
I removed this element because it doesn't seem to be working. I need to do some
additional research to figure out if it's possible to generate a mnemonic from
a WIF private key.
<Text
id='privateKey'
name='privateKey'
placeholder='Private Key'
label='Private Key'
labelPosition='above'
onChange={_this.handleUpdate}
/>
*/
+5 -5
View File
@@ -26,11 +26,11 @@ class InfoWallets extends React.Component {
<Col sm={12} className='text-center mt-2 mb-2'>
<p>
Bitcoin.com Mint is an open source, non-custodial web wallet
supporting SLP and BCH. Web wallets offer user convenience,
but storing large amounts of money on a web wallet is not
recommended. Creating your own SLP tokens only costs a few
cents worth of BCH.
This is an open source, non-custodial web wallet
supporting Bitcoin Cash (BHC) and SLP tokens. Web wallets
offer user convenience, by they are inherently insecure.
Storing large amounts of money on a web wallet is not
recommended.
</p>
</Col>
</Row>