mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-09-11 13:09:44 +00:00
use common styles
This commit is contained in:
parent
a7e788fd16
commit
d043233094
5 changed files with 14 additions and 21 deletions
|
@ -72,8 +72,7 @@ class ActiveShapeShift extends React.PureComponent<Props> {
|
||||||
<p>
|
<p>
|
||||||
Send up to{" "}
|
Send up to{" "}
|
||||||
<span className="credit-amount--bold">
|
<span className="credit-amount--bold">
|
||||||
{originCoinDepositMax}{" "}
|
{originCoinDepositMax} {shiftCoinType}
|
||||||
<span className="credit-amount--colored">{shiftCoinType}</span>
|
|
||||||
</span>{" "}
|
</span>{" "}
|
||||||
to the address below.
|
to the address below.
|
||||||
</p>
|
</p>
|
||||||
|
@ -109,9 +108,9 @@ class ActiveShapeShift extends React.PureComponent<Props> {
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
<div className="shapeshift__actions">
|
<div className="card__actions card__actions--only-vertical">
|
||||||
<Link
|
<Link
|
||||||
button="primary"
|
button={shiftState === statuses.COMPLETE ? "primary" : "alt"}
|
||||||
onClick={clearShapeShift}
|
onClick={clearShapeShift}
|
||||||
label={
|
label={
|
||||||
shiftState === statuses.COMPLETE ||
|
shiftState === statuses.COMPLETE ||
|
||||||
|
|
|
@ -86,7 +86,7 @@ export default (props: Props) => {
|
||||||
onBlur={handleBlur}
|
onBlur={handleBlur}
|
||||||
value={values.returnAddress}
|
value={values.returnAddress}
|
||||||
errorMessage={errors.returnAddress}
|
errorMessage={errors.returnAddress}
|
||||||
hasError={touched.returnAddress && errors.returnAddress}
|
hasError={touched.returnAddress && !!errors.returnAddress}
|
||||||
/>
|
/>
|
||||||
<span className="help">
|
<span className="help">
|
||||||
<span>
|
<span>
|
||||||
|
@ -95,7 +95,7 @@ export default (props: Props) => {
|
||||||
{__("to this address if the transaction doesn't go through.")}
|
{__("to this address if the transaction doesn't go through.")}
|
||||||
</span>
|
</span>
|
||||||
</span>
|
</span>
|
||||||
<div className="shapeshift__actions">
|
<div className="card__actions card__actions--only-vertical">
|
||||||
<Submit
|
<Submit
|
||||||
label={__("Begin Conversion")}
|
label={__("Begin Conversion")}
|
||||||
disabled={isSubmitting || !!Object.keys(errors).length}
|
disabled={isSubmitting || !!Object.keys(errors).length}
|
||||||
|
|
|
@ -39,11 +39,6 @@ body
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
}
|
}
|
||||||
|
|
||||||
.credit-amount--colored
|
|
||||||
{
|
|
||||||
color: var(--color-primary);
|
|
||||||
}
|
|
||||||
|
|
||||||
#main-content
|
#main-content
|
||||||
{
|
{
|
||||||
margin: auto;
|
margin: auto;
|
||||||
|
|
|
@ -74,6 +74,13 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.card__actions--only-vertical {
|
||||||
|
margin-left: 0;
|
||||||
|
margin-right: 0;
|
||||||
|
padding-left: 0;
|
||||||
|
padding-right: 0;
|
||||||
|
}
|
||||||
|
|
||||||
.card__content--extra-vertical-space {
|
.card__content--extra-vertical-space {
|
||||||
margin: $spacing-vertical 0;
|
margin: $spacing-vertical 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,14 +34,6 @@
|
||||||
margin-left: 40px;
|
margin-left: 40px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.shapeshift__actions {
|
|
||||||
padding-top: $spacing-vertical;
|
|
||||||
}
|
|
||||||
|
|
||||||
.shapeshift__submit,
|
|
||||||
.shapeshift__actions-help {
|
|
||||||
padding-top: $spacing-vertical / 2;
|
|
||||||
}
|
|
||||||
|
|
||||||
.shapeshift__link {
|
.shapeshift__link {
|
||||||
padding-left: 10px;
|
padding-left: 10px;
|
||||||
|
|
Loading…
Add table
Reference in a new issue