add back support button on top page
This commit is contained in:
parent
6516d9ffa6
commit
82b460f53d
2 changed files with 4 additions and 4 deletions
|
@ -1,4 +1,5 @@
|
||||||
// @flow
|
// @flow
|
||||||
|
import { SIMPLE_SITE } from 'config';
|
||||||
import * as ICONS from 'constants/icons';
|
import * as ICONS from 'constants/icons';
|
||||||
import * as PAGES from 'constants/pages';
|
import * as PAGES from 'constants/pages';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
@ -72,7 +73,7 @@ function WalletSendTip(props: Props) {
|
||||||
}, [channelStrings]);
|
}, [channelStrings]);
|
||||||
|
|
||||||
const tipAmount = useCustomTip ? customTipAmount : presetTipAmount;
|
const tipAmount = useCustomTip ? customTipAmount : presetTipAmount;
|
||||||
const isSupport = claimIsMine ? true : !sendAsTip;
|
const isSupport = claimIsMine ? true : SIMPLE_SITE ? false : !sendAsTip;
|
||||||
|
|
||||||
React.useEffect(() => {
|
React.useEffect(() => {
|
||||||
const regexp = RegExp(/^(\d*([.]\d{0,8})?)$/);
|
const regexp = RegExp(/^(\d*([.]\d{0,8})?)$/);
|
||||||
|
@ -301,7 +302,7 @@ function WalletSendTip(props: Props) {
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
{fetchingChannels && <span className="help">{__('Loading your channels...')}</span>}
|
{fetchingChannels && <span className="help">{__('Loading your channels...')}</span>}
|
||||||
{!claimIsMine && !fetchingChannels && (
|
{!claimIsMine && !fetchingChannels && !SIMPLE_SITE && (
|
||||||
<FormField
|
<FormField
|
||||||
name="toggle-is-support"
|
name="toggle-is-support"
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
// @flow
|
// @flow
|
||||||
import { SIMPLE_SITE } from 'config';
|
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import Page from 'component/page';
|
import Page from 'component/page';
|
||||||
import ClaimListDiscover from 'component/claimListDiscover';
|
import ClaimListDiscover from 'component/claimListDiscover';
|
||||||
|
@ -19,7 +18,7 @@ function TopPage(props: Props) {
|
||||||
name={name}
|
name={name}
|
||||||
defaultFreshness={FRESH_ALL}
|
defaultFreshness={FRESH_ALL}
|
||||||
defaultOrderBy={ORDER_BY_TOP}
|
defaultOrderBy={ORDER_BY_TOP}
|
||||||
includeSupportAction={!SIMPLE_SITE}
|
includeSupportAction
|
||||||
renderProperties={claim => (
|
renderProperties={claim => (
|
||||||
<span className="media__subtitle">
|
<span className="media__subtitle">
|
||||||
<ClaimEffectiveAmount uri={claim.repost_url || claim.canonical_url} />
|
<ClaimEffectiveAmount uri={claim.repost_url || claim.canonical_url} />
|
||||||
|
|
Loading…
Reference in a new issue