diff --git a/ui/component/settingContent/index.js b/ui/component/settingContent/index.js index 50860ae69..073cb4915 100644 --- a/ui/component/settingContent/index.js +++ b/ui/component/settingContent/index.js @@ -1,5 +1,5 @@ import { connect } from 'react-redux'; -import { SETTINGS } from 'lbry-redux'; +import { selectMyChannelUrls, SETTINGS } from 'lbry-redux'; import { doOpenModal } from 'redux/actions/app'; import { doSetPlayingUri } from 'redux/actions/content'; import { doSetClientSetting } from 'redux/actions/settings'; @@ -13,6 +13,7 @@ const select = (state) => ({ autoplay: makeSelectClientSetting(SETTINGS.AUTOPLAY)(state), hideReposts: makeSelectClientSetting(SETTINGS.HIDE_REPOSTS)(state), showNsfw: selectShowMatureContent(state), + myChannelUrls: selectMyChannelUrls(state), }); const perform = (dispatch) => ({ diff --git a/ui/component/settingContent/view.jsx b/ui/component/settingContent/view.jsx index 49fee1e42..5df04f286 100644 --- a/ui/component/settingContent/view.jsx +++ b/ui/component/settingContent/view.jsx @@ -1,29 +1,24 @@ // @flow +import * as ICONS from 'constants/icons'; +import * as PAGES from 'constants/pages'; import React from 'react'; import { SETTINGS } from 'lbry-redux'; import { Lbryio } from 'lbryinc'; import { SIMPLE_SITE } from 'config'; import * as MODALS from 'constants/modal_types'; +import Button from 'component/button'; import Card from 'component/common/card'; import { FormField } from 'component/common/form'; import MaxPurchasePrice from 'component/maxPurchasePrice'; import SettingsRow from 'component/settingsRow'; -const HELP_FLOATING_PLAYER = 'Keep content playing in the corner when navigating to a different page.'; -const HELP_AUTOPLAY = - 'Autoplay video and audio files when navigating to a file, as well as the next related item when a file finishes playing.'; -const HELP_HIDE_REPOSTS = 'You will not see reposts by people you follow or receive email notifying about them.'; -const HELP_SHOW_MATURE = - 'Mature content may include nudity, intense sexuality, profanity, or other adult content. By displaying mature content, you are affirming you are of legal age to view mature content in your country or jurisdiction. '; -const HELP_MAX_PURCHASE_PRICE = - 'This will prevent you from purchasing any content over a certain cost, as a safety measure.'; - type Props = { isAuthenticated: boolean, floatingPlayer: boolean, autoplay: boolean, hideReposts: ?boolean, showNsfw: boolean, + myChannelUrls: ?Array, setClientSetting: (string, boolean | string | number) => void, clearPlayingUri: () => void, openModal: (string) => void, @@ -36,6 +31,7 @@ export default function SettingContent(props: Props) { autoplay, hideReposts, showNsfw, + myChannelUrls, setClientSetting, clearPlayingUri, openModal, @@ -111,6 +107,39 @@ export default function SettingContent(props: Props) { )} + {(isAuthenticated || !IS_WEB) && ( + <> + +