hide livestream on upload form if not experimental UI (#5735)

This commit is contained in:
Dispatch 2021-03-23 10:27:30 -07:00 committed by GitHub
parent f2e17f8566
commit d362fe0d75
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View file

@ -18,9 +18,11 @@ import { selectUnclaimedRewardValue } from 'redux/selectors/rewards';
import { selectModal, selectActiveChannelClaim, selectIncognito } from 'redux/selectors/app';
import { makeSelectClientSetting } from 'redux/selectors/settings';
import PublishPage from './view';
import { selectUser } from '../../redux/selectors/user';
const select = state => ({
...selectPublishFormValues(state),
user: selectUser(state),
// The winning claim for a short lbry uri
amountNeededForTakeover: selectTakeOverAmount(state),
// My previously published claims under this short lbry uri

View file

@ -87,6 +87,7 @@ type Props = {
enablePublishPreview: boolean,
activeChannelClaim: ?ChannelClaim,
incognito: boolean,
user: ?{ experimental_ui: boolean },
};
function PublishForm(props: Props) {
@ -132,6 +133,7 @@ function PublishForm(props: Props) {
enablePublishPreview,
activeChannelClaim,
incognito,
user,
} = props;
const TAGS_LIMIT = 5;
@ -394,7 +396,7 @@ function PublishForm(props: Props) {
setPrevFileText={setPrevFileText}
header={
<>
{MODES.map((modeName, index) => (
{MODES.map((modeName, index) => !((index === 2) && user && user.experimental_ui) && (
<Button
key={index}
icon={modeName}