Browse Source

fix(wallet-address): simply display generated address for now. add advanced settings later

renovate/lint-staged-8.x
Jack Mallers 7 years ago
parent
commit
69c8042cb3
  1. 18
      app/routes/wallet/components/Wallet.js
  2. 49
      app/routes/wallet/components/Wallet.scss

18
app/routes/wallet/components/Wallet.js

@ -40,16 +40,14 @@ class Wallet extends Component {
<section className={styles.header}> <section className={styles.header}>
<section className={styles.walletInfo}> <section className={styles.walletInfo}>
<ReactSVG path='../resources/zap_2.svg' /> <ReactSVG path='../resources/zap_2.svg' />
<h1>{info.data.identity_pubkey}</h1> <h1 data-hint='Node identity public key' className='hint--top'>{info.data.identity_pubkey}</h1>
<section className={styles.addressContainer}> <h4 className={`${styles.address} hint--top`} data-hint='Wallet address'>
<span className={`${styles.addressButton} ${styles.newAddress}`}>New wallet address</span> <input
<div className={styles.addressOptions}> type='text'
<span className={`${styles.addressButton} ${styles.p2wkh}`}>p2wkh</span> value={address}
<span className={`${styles.addressButton} ${styles.np2wkh}`}>np2wkh</span> readOnly
<span className={`${styles.addressButton} ${styles.p2pkh}`}>p2pkh</span> />
</div> </h4>
<div className={styles.address}>{address}</div>
</section>
</section> </section>
</section> </section>
<section className={styles.walletData}> <section className={styles.walletData}>

49
app/routes/wallet/components/Wallet.scss

@ -11,7 +11,7 @@
text-align: center; text-align: center;
.walletInfo { .walletInfo {
width: 50%; width: 75%;
margin: 0 auto; margin: 0 auto;
} }
@ -22,47 +22,26 @@
} }
h1 { h1 {
font-size: 20px;
margin: 20px 0; margin: 20px 0;
font-weight: 200; font-weight: bold;
color: $black; color: $black;
text-align: left; text-align: center;
} }
.addressContainer { .address {
text-align: left; text-align: center;
margin-top: 30px; margin-top: 10px;
.addressButton {
display: inline-block;
border: 1px solid $main;
border-radius: 7px;
font-size: 10px;
cursor: pointer;
padding: 10px;
color: $main;
transition: all 0.25s;
&:hover {
color: $white;
background: $main;
}
}
.addressOptions {
display: inline-block;
margin-left: 30px;
span {
margin: 0 5px;
}
}
.address { input[type=text] {
padding: 10px; width: 50%;
background: $darkgrey;
text-align: center; text-align: center;
font-size: 14px;
font-weight: 200;
border-radius: 7px; border-radius: 7px;
margin-top: 10px; background: $lightgrey;
border: 1px solid $main;
padding: 10px;
} }
} }
} }

Loading…
Cancel
Save