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 // @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,15 +87,15 @@ 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%', {
name: claim.name, name: claim.name,
})} })}
navigate={`/$/${PAGES.TOP}?name=${claim.name}`} navigate={`/$/${PAGES.TOP}?name=${claim.name}`}
/> />
) )}
</div> </div>
</Fragment> </Fragment>
</section> </section>

View file

@ -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;