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