Browse Source

fix(ln payment modal): redesign modal

renovate/lint-staged-8.x
Jack Mallers 7 years ago
parent
commit
21f3b43a7c
  1. 13
      app/routes/activity/components/components/Modal/Payment/Payment.js
  2. 48
      app/routes/activity/components/components/Modal/Payment/Payment.scss

13
app/routes/activity/components/components/Modal/Payment/Payment.js

@ -12,9 +12,10 @@ import styles from './Payment.scss'
const Payment = ({ payment, ticker, currentTicker }) => ( const Payment = ({ payment, ticker, currentTicker }) => (
<div className={styles.container}> <div className={styles.container}>
<h3>{payment.payment_hash}</h3> <header>
<div className={styles.title}>
<h2>Sent</h2>
<h1> <h1>
<CurrencyIcon currency={ticker.currency} crypto={ticker.crypto} styles={{ verticalAlign: 'top' }} />
<span className={styles.value}> <span className={styles.value}>
{ {
ticker.currency === 'usd' ? ticker.currency === 'usd' ?
@ -23,10 +24,18 @@ const Payment = ({ payment, ticker, currentTicker }) => (
btc.satoshisToBtc(payment.value) btc.satoshisToBtc(payment.value)
} }
</span> </span>
<i>
BTC
</i>
</h1> </h1>
</div>
<h3>{payment.payment_hash}</h3>
</header>
<dl> <dl>
<dt>Fee</dt> <dt>Fee</dt>
<dd>{payment.fee}</dd> <dd>{payment.fee}</dd>
<dt>Hops</dt>
<dd>{payment.path.length}</dd>
<dt>Date</dt> <dt>Date</dt>
<dd> <dd>
<Moment format='MMM Do'>{payment.creation_date * 1000}</Moment> <Moment format='MMM Do'>{payment.creation_date * 1000}</Moment>

48
app/routes/activity/components/components/Modal/Payment/Payment.scss

@ -1,38 +1,44 @@
@import '../../../../../../variables.scss'; @import '../../../../../../variables.scss';
.container { .container {
padding: 40px; header {
padding: 5px 40px 20px 40px;
background: $lightgrey;
h1 { .title {
text-align: center; display: flex;
color: $main; flex-direction: row;
margin: 60px 30px 60px 0; margin-bottom: 30px;
svg { h2 {
font-size: 30px; text-transform: uppercase;
vertical-align: top; font-size: 24px;
margin-right: 10px;
} }
span svg[data-icon='ltc'] {
width: 30px;
height: 30px;
vertical-align: top;
g {
transform: scale(1.75) translate(-5px, -5px);
} }
} }
h1 {
color: $main;
.value { .value {
font-size: 80px; font-size: 24px;
}
i {
margin-left: 2px;
vertical-align: top;
} }
} }
h3 { h3 {
font-size: 14px; font-size: 14px;
text-align: center; text-align: center;
color: $black; color: $darkestgrey;
font-weight: bold; }
dl {
padding: 40px 40px 40px 40px;
} }
dt { dt {
@ -48,8 +54,8 @@
dd { dd {
text-align: right; text-align: right;
font-weight: 400; font-weight: 400;
padding: 19px 0; padding: 30px 0 10px 0;
margin-left: 0; margin-left: 0;
border-top: 1px solid $darkgrey; border-bottom: 1px solid $darkgrey;
} }
} }
Loading…
Cancel
Save