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
|
// @flow
|
||||||
|
import { SIMPLE_SITE } from 'config';
|
||||||
import React, { Fragment } from 'react';
|
import React, { Fragment } from 'react';
|
||||||
import MarkdownPreview from 'component/common/markdown-preview';
|
import MarkdownPreview from 'component/common/markdown-preview';
|
||||||
import ClaimTags from 'component/claimTags';
|
import ClaimTags from 'component/claimTags';
|
||||||
|
@ -86,7 +87,7 @@ function ChannelAbout(props: Props) {
|
||||||
amount={parseFloat(claim.amount) + parseFloat(claim.meta.support_amount)}
|
amount={parseFloat(claim.amount) + parseFloat(claim.meta.support_amount)}
|
||||||
precision={8}
|
precision={8}
|
||||||
/>{' '}
|
/>{' '}
|
||||||
(
|
{SIMPLE_SITE && (
|
||||||
<Button
|
<Button
|
||||||
button="link"
|
button="link"
|
||||||
label={__('view other claims at lbry://%name%', {
|
label={__('view other claims at lbry://%name%', {
|
||||||
|
@ -94,7 +95,7 @@ function ChannelAbout(props: Props) {
|
||||||
})}
|
})}
|
||||||
navigate={`/$/${PAGES.TOP}?name=${claim.name}`}
|
navigate={`/$/${PAGES.TOP}?name=${claim.name}`}
|
||||||
/>
|
/>
|
||||||
)
|
)}
|
||||||
</div>
|
</div>
|
||||||
</Fragment>
|
</Fragment>
|
||||||
</section>
|
</section>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// @flow
|
// @flow
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import LbcSymbol from 'component/common/lbc-symbol';
|
import CreditAmount from 'component/common/credit-amount';
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
uri: string,
|
uri: string,
|
||||||
|
@ -14,7 +14,7 @@ function ClaimEffectiveAmount(props: Props) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
return <LbcSymbol postfix={claim.meta.effective_amount} />;
|
return <CreditAmount amount={Number(claim.meta.effective_amount)} />;
|
||||||
}
|
}
|
||||||
|
|
||||||
export default ClaimEffectiveAmount;
|
export default ClaimEffectiveAmount;
|
||||||
|
|
Loading…
Add table
Reference in a new issue