Browse Source

fix(ln payment modal): redesign modal

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

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

@ -12,21 +12,30 @@ 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>
<h1> <div className={styles.title}>
<CurrencyIcon currency={ticker.currency} crypto={ticker.crypto} styles={{ verticalAlign: 'top' }} /> <h2>Sent</h2>
<span className={styles.value}> <h1>
{ <span className={styles.value}>
ticker.currency === 'usd' ? {
btc.satoshisToUsd(payment.value, currentTicker.price_usd) ticker.currency === 'usd' ?
: btc.satoshisToUsd(payment.value, currentTicker.price_usd)
btc.satoshisToBtc(payment.value) :
} btc.satoshisToBtc(payment.value)
</span> }
</h1> </span>
<i>
BTC
</i>
</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;
.title {
display: flex;
flex-direction: row;
margin-bottom: 30px;
h2 {
text-transform: uppercase;
font-size: 24px;
margin-right: 10px;
}
}
}
h1 { h1 {
text-align: center;
color: $main; color: $main;
margin: 60px 30px 60px 0;
svg { .value {
font-size: 30px; font-size: 24px;
vertical-align: top;
} }
span svg[data-icon='ltc'] { i {
width: 30px; margin-left: 2px;
height: 30px;
vertical-align: top; vertical-align: top;
g {
transform: scale(1.75) translate(-5px, -5px);
}
}
.value {
font-size: 80px;
} }
} }
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