diff --git a/src/ui/component/commentCreate/view.jsx b/src/ui/component/commentCreate/view.jsx index e5ea9d06e..67175ac93 100644 --- a/src/ui/component/commentCreate/view.jsx +++ b/src/ui/component/commentCreate/view.jsx @@ -4,7 +4,6 @@ import React, { useEffect, useState } from 'react'; import { FormField, Form } from 'component/common/form'; import Button from 'component/button'; import ChannelSection from 'component/selectChannel'; -import UnsupportedOnWeb from 'component/common/unsupported-on-web'; import usePersistedState from 'effects/use-persisted-state'; type Props = { @@ -42,8 +41,6 @@ export function CommentCreate(props: Props) { return (
- - {/* @if TARGET='app' */} {commentAck !== true && (

{__('A few things to know before participating in the comment alpha:')}

@@ -94,7 +91,6 @@ export function CommentCreate(props: Props) {
)} - {/* @endif */}
); } diff --git a/src/ui/component/publishForm/view.jsx b/src/ui/component/publishForm/view.jsx index 837bddc4f..f5b961e74 100644 --- a/src/ui/component/publishForm/view.jsx +++ b/src/ui/component/publishForm/view.jsx @@ -24,6 +24,7 @@ import SelectThumbnail from 'component/selectThumbnail'; import Card from 'component/common/card'; type Props = { + disabled: boolean, tags: Array, publish: PublishParams => void, filePath: ?string, @@ -82,6 +83,7 @@ function PublishForm(props: Props) { isStillEditing, tags, publish, + disabled = false, } = props; const formDisabled = (!filePath && !editingURI) || publishing; // If they are editing, they don't need a new file chosen @@ -130,7 +132,7 @@ function PublishForm(props: Props) { return ( - +
} /> diff --git a/src/ui/component/selectChannel/index.js b/src/ui/component/selectChannel/index.js index eec1756c4..2947e4db1 100644 --- a/src/ui/component/selectChannel/index.js +++ b/src/ui/component/selectChannel/index.js @@ -7,11 +7,13 @@ import { doFetchChannelListMine, doCreateChannel, } from 'lbry-redux'; +import { selectUserVerifiedEmail } from 'lbryinc'; const select = state => ({ channels: selectMyChannelClaims(state), fetchingChannels: selectFetchingMyChannels(state), balance: selectBalance(state), + emailVerified: selectUserVerifiedEmail(state), }); const perform = dispatch => ({ diff --git a/src/ui/component/selectChannel/view.jsx b/src/ui/component/selectChannel/view.jsx index 46f07c727..a67aa41a6 100644 --- a/src/ui/component/selectChannel/view.jsx +++ b/src/ui/component/selectChannel/view.jsx @@ -16,6 +16,7 @@ type Props = { createChannel: (string, number) => Promise, fetchChannelListMine: () => void, fetchingChannels: boolean, + emailVerified: boolean, }; type State = { @@ -49,7 +50,11 @@ class ChannelSection extends React.PureComponent { } componentDidMount() { - const { channels, fetchChannelListMine, fetchingChannels } = this.props; + const { channels, fetchChannelListMine, fetchingChannels, emailVerified } = this.props; + if (IS_WEB && !emailVerified) { + return; + } + if ((!channels || !channels.length) && !fetchingChannels) { fetchChannelListMine(); } diff --git a/src/ui/page/publish/view.jsx b/src/ui/page/publish/view.jsx index 64c08cfb4..34f6187d2 100644 --- a/src/ui/page/publish/view.jsx +++ b/src/ui/page/publish/view.jsx @@ -63,7 +63,7 @@ function PublishPage(props: Props) { )} - + ); }