hide top page behind SIMPLE_SITE flag

This commit is contained in:
Sean Yesmunt 2020-09-16 12:26:14 -04:00
parent 6ed57822d6
commit c6e2b54d33
2 changed files with 12 additions and 11 deletions

View file

@ -1,4 +1,5 @@
// @flow
import { SIMPLE_SITE } from 'config';
import React, { Fragment } from 'react';
import MarkdownPreview from 'component/common/markdown-preview';
import ClaimTags from 'component/claimTags';
@ -86,15 +87,15 @@ function ChannelAbout(props: Props) {
amount={parseFloat(claim.amount) + parseFloat(claim.meta.support_amount)}
precision={8}
/>{' '}
(
<Button
button="link"
label={__('view other claims at lbry://%name%', {
name: claim.name,
})}
navigate={`/$/${PAGES.TOP}?name=${claim.name}`}
/>
)
{SIMPLE_SITE && (
<Button
button="link"
label={__('view other claims at lbry://%name%', {
name: claim.name,
})}
navigate={`/$/${PAGES.TOP}?name=${claim.name}`}
/>
)}
</div>
</Fragment>
</section>

View file

@ -1,6 +1,6 @@
// @flow
import React from 'react';
import LbcSymbol from 'component/common/lbc-symbol';
import CreditAmount from 'component/common/credit-amount';
type Props = {
uri: string,
@ -14,7 +14,7 @@ function ClaimEffectiveAmount(props: Props) {
return null;
}
return <LbcSymbol postfix={claim.meta.effective_amount} />;
return <CreditAmount amount={Number(claim.meta.effective_amount)} />;
}
export default ClaimEffectiveAmount;