PR cleanup
This commit is contained in:
parent
048c46f59d
commit
936d31b914
7 changed files with 6 additions and 19 deletions
|
@ -10,7 +10,8 @@ type Props = {
|
||||||
function RewardTotal(props: Props) {
|
function RewardTotal(props: Props) {
|
||||||
const { rewards } = props;
|
const { rewards } = props;
|
||||||
const rewardTotal = rewards.reduce((acc, val) => acc + val.reward_amount, 0);
|
const rewardTotal = rewards.reduce((acc, val) => acc + val.reward_amount, 0);
|
||||||
const total = useTween(rewardTotal * 40);
|
const modifier = rewardTotal > 500 ? 1 : 15; // used to tweak the reward count speed
|
||||||
|
const total = useTween(rewardTotal * modifier);
|
||||||
const integer = Math.round(total * rewardTotal);
|
const integer = Math.round(total * rewardTotal);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
|
@ -272,10 +272,7 @@ class FilePage extends React.Component<Props> {
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div
|
<div className="media__actions media__actions--between">
|
||||||
className="media__actions media__actions--between"
|
|
||||||
style={{ marginTop: '1rem', paddingTop: '1rem', borderTop: '1px solid #ddd' }}
|
|
||||||
>
|
|
||||||
<div className="media__subtext media__subtext--large">
|
<div className="media__subtext media__subtext--large">
|
||||||
<DateTime uri={uri} show={DateTime.SHOW_DATE} />
|
<DateTime uri={uri} show={DateTime.SHOW_DATE} />
|
||||||
</div>
|
</div>
|
||||||
|
@ -293,8 +290,6 @@ class FilePage extends React.Component<Props> {
|
||||||
|
|
||||||
<div className="media__info--large">
|
<div className="media__info--large">
|
||||||
<ClaimTags uri={uri} type="large" />
|
<ClaimTags uri={uri} type="large" />
|
||||||
</div>
|
|
||||||
<div className="media__info--large">
|
|
||||||
<FileDetails uri={uri} />
|
<FileDetails uri={uri} />
|
||||||
|
|
||||||
<div className="media__info-title">{__('Comments')}</div>
|
<div className="media__info-title">{__('Comments')}</div>
|
||||||
|
|
|
@ -8,7 +8,7 @@ import UnsupportedOnWeb from 'component/common/unsupported-on-web';
|
||||||
|
|
||||||
const WalletPage = () => (
|
const WalletPage = () => (
|
||||||
<Page>
|
<Page>
|
||||||
{IS_WEB && <UnsupportedOnWeb />}
|
<UnsupportedOnWeb />
|
||||||
<div className={IS_WEB && 'card--disabled'}>
|
<div className={IS_WEB && 'card--disabled'}>
|
||||||
<WalletBalance />
|
<WalletBalance />
|
||||||
<TransactionListRecent />
|
<TransactionListRecent />
|
||||||
|
|
|
@ -19,11 +19,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.button--primary {
|
.button--primary {
|
||||||
&:not(:hover) {
|
|
||||||
// fix this in components repo
|
|
||||||
background-color: $lbry-teal-4;
|
|
||||||
}
|
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
background-color: $lbry-teal-3;
|
background-color: $lbry-teal-3;
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
.file-properties--large {
|
.file-properties--large {
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
margin: var(--spacing-small) 0;
|
margin: var(--spacing-medium) 0;
|
||||||
|
|
||||||
& > * {
|
& > * {
|
||||||
margin-top: var(--spacing-small);
|
margin-top: var(--spacing-small);
|
||||||
|
|
|
@ -179,7 +179,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.media__info--large {
|
.media__info--large {
|
||||||
// border-top: 1px solid $lbry-gray-1;
|
border-top: 1px solid $lbry-gray-1;
|
||||||
margin-top: var(--spacing-medium);
|
margin-top: var(--spacing-medium);
|
||||||
|
|
||||||
html[data-mode='dark'] & {
|
html[data-mode='dark'] & {
|
||||||
|
|
|
@ -292,7 +292,6 @@
|
||||||
"Comment": "Comment",
|
"Comment": "Comment",
|
||||||
"Your comment": "Your comment",
|
"Your comment": "Your comment",
|
||||||
"Post": "Post",
|
"Post": "Post",
|
||||||
<<<<<<< HEAD
|
|
||||||
"No modifier provided after separator %s.": "No modifier provided after separator %s.",
|
"No modifier provided after separator %s.": "No modifier provided after separator %s.",
|
||||||
"Incompatible Daemon": "Incompatible Daemon",
|
"Incompatible Daemon": "Incompatible Daemon",
|
||||||
"Incompatible daemon running": "Incompatible daemon running",
|
"Incompatible daemon running": "Incompatible daemon running",
|
||||||
|
@ -309,9 +308,6 @@
|
||||||
"Your version is out of date and may be unreliable or insecure.": "Your version is out of date and may be unreliable or insecure.",
|
"Your version is out of date and may be unreliable or insecure.": "Your version is out of date and may be unreliable or insecure.",
|
||||||
"Want to know what has changed?": "Want to know what has changed?",
|
"Want to know what has changed?": "Want to know what has changed?",
|
||||||
"release notes": "release notes",
|
"release notes": "release notes",
|
||||||
=======
|
|
||||||
"You haven't downloaded anything from LBRY yet.": "You haven't downloaded anything from LBRY yet.",
|
|
||||||
>>>>>>> ca0fd40a... add placeholders to claim previews
|
|
||||||
"Read the FAQ": "Read the FAQ",
|
"Read the FAQ": "Read the FAQ",
|
||||||
"Our FAQ answers many common questions.": "Our FAQ answers many common questions.",
|
"Our FAQ answers many common questions.": "Our FAQ answers many common questions.",
|
||||||
"Get Live Help": "Get Live Help",
|
"Get Live Help": "Get Live Help",
|
||||||
|
|
Loading…
Reference in a new issue