diff --git a/ui/component/common/icon-custom.jsx b/ui/component/common/icon-custom.jsx index e16c57221..296831af1 100644 --- a/ui/component/common/icon-custom.jsx +++ b/ui/component/common/icon-custom.jsx @@ -154,15 +154,6 @@ export const icons = { ), - [ICONS.TIP]: buildIcon( - - - - - - - - ), [ICONS.SHARE]: buildIcon( @@ -276,8 +267,11 @@ export const icons = { ), [ICONS.SUPPORT]: buildIcon( - - + + + + + ), [ICONS.EYE]: buildIcon( diff --git a/ui/component/creatorAnalytics/view.jsx b/ui/component/creatorAnalytics/view.jsx index c769d129c..ef3486552 100644 --- a/ui/component/creatorAnalytics/view.jsx +++ b/ui/component/creatorAnalytics/view.jsx @@ -122,7 +122,7 @@ export default function CreatorAnalytics(props: Props) { follower_count_weekly_change: stats.ChannelSubChange || 0, })} - {stats.ChannelSubChange > 0 && } + {stats.ChannelSubChange > 0 && } } /> @@ -136,7 +136,7 @@ export default function CreatorAnalytics(props: Props) { all_content_views_weekly_change: stats.AllContentViewChange || 0, })} - {stats.AllContentViewChange > 0 && } + {stats.AllContentViewChange > 0 && } } /> @@ -156,7 +156,7 @@ export default function CreatorAnalytics(props: Props) { lbc_received_changed: stats.LBCReceivedChange || 0, })} - {stats.LBCReceivedChange > 0 && } + {stats.LBCReceivedChange > 0 && }

{__( @@ -182,7 +182,7 @@ export default function CreatorAnalytics(props: Props) { ? __('1 view', { view_count: stats.VideoViewsTopNew }) : __('%view_count% views', { view_count: stats.VideoViewsTopNew })} - {stats.VideoViewsTopNew > 0 && } + {stats.VideoViewsTopNew > 0 && } } @@ -230,7 +230,7 @@ export default function CreatorAnalytics(props: Props) { all_time_views_weekly_change: stats.VideoViewChangeTopAllTime, })} - {stats.VideoViewChangeTopAllTime > 0 && } + {stats.VideoViewChangeTopAllTime > 0 && } } diff --git a/ui/component/fileActions/index.js b/ui/component/fileActions/index.js index d0604d549..b57c78062 100644 --- a/ui/component/fileActions/index.js +++ b/ui/component/fileActions/index.js @@ -1,8 +1,6 @@ import { connect } from 'react-redux'; -import * as SETTINGS from 'constants/settings'; import { makeSelectClaimIsMine, makeSelectFileInfoForUri, makeSelectClaimForUri, doPrepareEdit } from 'lbry-redux'; import { makeSelectCostInfoForUri } from 'lbryinc'; -import { makeSelectClientSetting } from 'redux/selectors/settings'; import { doOpenModal } from 'redux/actions/app'; import fs from 'fs'; import FileActions from './view'; @@ -14,7 +12,6 @@ const select = (state, props) => ({ fileInfo: makeSelectFileInfoForUri(props.uri)(state), renderMode: makeSelectFileRenderModeForUri(props.uri)(state), costInfo: makeSelectCostInfoForUri(props.uri)(state), - supportOption: makeSelectClientSetting(SETTINGS.SUPPORT_OPTION)(state), }); const perform = dispatch => ({ diff --git a/ui/component/fileActions/view.jsx b/ui/component/fileActions/view.jsx index 464f4e164..e9577b341 100644 --- a/ui/component/fileActions/view.jsx +++ b/ui/component/fileActions/view.jsx @@ -1,5 +1,7 @@ // @flow import type { Node } from 'react'; +import * as PAGES from 'constants/pages'; +import * as CS from 'constants/claim_search'; import * as MODALS from 'constants/modal_types'; import * as ICONS from 'constants/icons'; import React from 'react'; @@ -8,6 +10,7 @@ import FileDownloadLink from 'component/fileDownloadLink'; import { buildURI } from 'lbry-redux'; import * as RENDER_MODES from 'constants/file_render_modes'; import useIsMobile from 'effects/use-is-mobile'; +import ClaimSupportButton from 'component/claimSupportButton'; type Props = { uri: string, @@ -18,11 +21,10 @@ type Props = { fileInfo: FileListItem, costInfo: ?{ cost: number }, renderMode: string, - supportOption: boolean, }; function FileActions(props: Props) { - const { fileInfo, uri, openModal, claimIsMine, claim, costInfo, renderMode, supportOption, prepareEdit } = props; + const { fileInfo, uri, openModal, claimIsMine, claim, costInfo, renderMode, prepareEdit } = props; const isMobile = useIsMobile(); const webShareable = costInfo && costInfo.cost === 0 && RENDER_MODES.WEB_SHAREABLE_MODES.includes(renderMode); const showDelete = claimIsMine || (fileInfo && (fileInfo.written_bytes > 0 || fileInfo.blobs_completed > 0)); @@ -61,34 +63,25 @@ function FileActions(props: Props) { label={__('Share')} onClick={() => openModal(MODALS.SOCIAL_SHARE, { uri, webShareable })} /> -