From cbefacf67327510983ea0ce2c2a323ad4c5d68cd Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Thu, 12 Jul 2018 14:10:58 -0400 Subject: [PATCH] add hidden message on subscriptions page --- src/renderer/page/subscriptions/view.jsx | 11 ++++++++--- src/renderer/scss/component/_card.scss | 2 +- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/renderer/page/subscriptions/view.jsx b/src/renderer/page/subscriptions/view.jsx index c94c6fc76..9b007f679 100644 --- a/src/renderer/page/subscriptions/view.jsx +++ b/src/renderer/page/subscriptions/view.jsx @@ -7,6 +7,7 @@ import Button from 'component/button'; import FileList from 'component/fileList'; import type { Claim } from 'types/claim'; import isDev from 'electron-is-dev'; +import HiddenNsfwClaims from 'component/hiddenNsfwClaims'; type Props = { doFetchClaimsByChannel: (string, number) => void, @@ -51,9 +52,10 @@ export default class extends React.PureComponent { if (claim.claims.length) { subscriptionClaimMap[claim.uri] = 1; } else if (isDev) { - console.error( - `claim for ${claim.uri} was added to byId in redux but there are no loaded fetched claims` - ); + console + .error + // `claim for ${claim.uri} was added to byId in redux but there are no loaded fetched claims` + (); } }); @@ -72,6 +74,8 @@ export default class extends React.PureComponent { claimList = claimList.concat(claimData.claims); }); + const subscriptionUris = claimList.map(claim => `lbry://${claim.name}#${claim.claim_id}`); + return ( {!subscriptions.length && ( @@ -83,6 +87,7 @@ export default class extends React.PureComponent { )} {!!claimList.length && } + ); } diff --git a/src/renderer/scss/component/_card.scss b/src/renderer/scss/component/_card.scss index 037a0edb4..bd2fc0798 100644 --- a/src/renderer/scss/component/_card.scss +++ b/src/renderer/scss/component/_card.scss @@ -357,7 +357,7 @@ .card { display: inline-block; vertical-align: top; - margin-bottom: 60px; + margin-bottom: $spacing-vertical * 3/2; @media only screen and (max-width: $medium-breakpoint) { width: calc((100% / 4) - (60px / 4)); // 60px === 20px margin-right * three cards