updatePublishForm({ channel })} />
{__('This is a username or handle that your content can be found under.')}{' '}
{__('Ex. @Marvel, @TheBeatles, @BooksByJoe')}
diff --git a/ui/component/selectChannel/view.jsx b/ui/component/selectChannel/view.jsx
index de4117024..8b3d95c63 100644
--- a/ui/component/selectChannel/view.jsx
+++ b/ui/component/selectChannel/view.jsx
@@ -14,11 +14,12 @@ type Props = {
createChannel: (string, number) => Promise,
fetchChannelListMine: () => void,
fetchingChannels: boolean,
- emailVerified: boolean,
- includeAnonymous?: boolean,
+ hideNew: boolean,
+ hideAnon: boolean,
includeNew?: boolean,
label?: string,
injected?: Array,
+ emailVerified: boolean,
};
type State = {
@@ -73,9 +74,47 @@ class ChannelSection extends React.PureComponent {
render() {
const channel = this.state.addingChannel ? 'new' : this.props.channel;
- const { fetchingChannels, channels = [], includeAnonymous, includeNew, label, injected = [] } = this.props;
+ const { fetchingChannels, channels = [], hideNew, hideAnon, label, injected = [] } = this.props;
const { addingChannel } = this.state;
+ if (hideNew) {
+ return (
+
+ {fetchingChannels ? (
+
+ ) : (
+ <>
+
+ {!hideAnon && }
+ {channels &&
+ channels.map(({ name, claim_id: claimId }) => (
+
+ ))}
+ {injected &&
+ injected.map(item => (
+
+ ))}
+
+ {addingChannel && (
+
+
+
+ )}
+ >
+ )}
+
+ );
+ }
return (
{fetchingChannels ? (
@@ -90,7 +129,7 @@ class ChannelSection extends React.PureComponent {
onChange={this.handleChannelChange}
value={channel}
>
- {includeAnonymous && }
+ {!hideAnon && }
{channels &&
channels.map(({ name, claim_id: claimId }) => (
))}
- {includeNew && }
+ }