hide top page behind SIMPLE_SITE flag
This commit is contained in:
parent
6ed57822d6
commit
c6e2b54d33
2 changed files with 12 additions and 11 deletions
|
@ -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,7 +87,7 @@ function ChannelAbout(props: Props) {
|
|||
amount={parseFloat(claim.amount) + parseFloat(claim.meta.support_amount)}
|
||||
precision={8}
|
||||
/>{' '}
|
||||
(
|
||||
{SIMPLE_SITE && (
|
||||
<Button
|
||||
button="link"
|
||||
label={__('view other claims at lbry://%name%', {
|
||||
|
@ -94,7 +95,7 @@ function ChannelAbout(props: Props) {
|
|||
})}
|
||||
navigate={`/$/${PAGES.TOP}?name=${claim.name}`}
|
||||
/>
|
||||
)
|
||||
)}
|
||||
</div>
|
||||
</Fragment>
|
||||
</section>
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue