tweaks
This commit is contained in:
parent
c91ce52be8
commit
2315727385
4 changed files with 6 additions and 11 deletions
|
@ -1287,5 +1287,6 @@
|
||||||
"Edit Cover Image": "Edit Cover Image",
|
"Edit Cover Image": "Edit Cover Image",
|
||||||
"Cover Image": "Cover Image",
|
"Cover Image": "Cover Image",
|
||||||
"You Followed Your First Channel!": "You Followed Your First Channel!",
|
"You Followed Your First Channel!": "You Followed Your First Channel!",
|
||||||
"Awesome! You just followed your first first channel.": "Awesome! You just followed your first first channel."
|
"Awesome! You just followed your first first channel.": "Awesome! You just followed your first first channel.",
|
||||||
}
|
"After submitting, it will take a few minutes for your changes to be live for everyone.": "After submitting, it will take a few minutes for your changes to be live for everyone."
|
||||||
|
}
|
|
@ -378,9 +378,7 @@ function ChannelForm(props: Props) {
|
||||||
<ErrorText>{updateError || createError}</ErrorText>
|
<ErrorText>{updateError || createError}</ErrorText>
|
||||||
) : (
|
) : (
|
||||||
<p className="help">
|
<p className="help">
|
||||||
{__(
|
{__('After submitting, it will take a few minutes for your changes to be live for everyone.')}
|
||||||
'After submitting, you will not see the changes immediately. Please check back in a few minutes.'
|
|
||||||
)}
|
|
||||||
</p>
|
</p>
|
||||||
)}
|
)}
|
||||||
{!isNewChannel && (
|
{!isNewChannel && (
|
||||||
|
|
|
@ -6,7 +6,6 @@ import {
|
||||||
selectFetchingMyChannels,
|
selectFetchingMyChannels,
|
||||||
} from 'lbry-redux';
|
} from 'lbry-redux';
|
||||||
import { selectYoutubeChannels } from 'redux/selectors/user';
|
import { selectYoutubeChannels } from 'redux/selectors/user';
|
||||||
import { doOpenModal } from 'redux/actions/app';
|
|
||||||
import ChannelsPage from './view';
|
import ChannelsPage from './view';
|
||||||
|
|
||||||
const select = state => ({
|
const select = state => ({
|
||||||
|
@ -17,7 +16,6 @@ const select = state => ({
|
||||||
});
|
});
|
||||||
|
|
||||||
const perform = dispatch => ({
|
const perform = dispatch => ({
|
||||||
openModal: id => dispatch(doOpenModal(id)),
|
|
||||||
fetchChannelListMine: () => dispatch(doFetchChannelListMine()),
|
fetchChannelListMine: () => dispatch(doFetchChannelListMine()),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
// @flow
|
// @flow
|
||||||
import * as MODALS from 'constants/modal_types';
|
|
||||||
import * as ICONS from 'constants/icons';
|
import * as ICONS from 'constants/icons';
|
||||||
import React, { useEffect } from 'react';
|
import React, { useEffect } from 'react';
|
||||||
import ClaimList from 'component/claimList';
|
import ClaimList from 'component/claimList';
|
||||||
|
@ -16,11 +15,10 @@ type Props = {
|
||||||
fetchChannelListMine: () => void,
|
fetchChannelListMine: () => void,
|
||||||
fetchingChannels: boolean,
|
fetchingChannels: boolean,
|
||||||
youtubeChannels: ?Array<any>,
|
youtubeChannels: ?Array<any>,
|
||||||
openModal: string => void,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
export default function ChannelsPage(props: Props) {
|
export default function ChannelsPage(props: Props) {
|
||||||
const { channels, channelUrls, fetchChannelListMine, fetchingChannels, youtubeChannels, openModal } = props;
|
const { channels, channelUrls, fetchChannelListMine, fetchingChannels, youtubeChannels } = props;
|
||||||
const hasYoutubeChannels = youtubeChannels && Boolean(youtubeChannels.length);
|
const hasYoutubeChannels = youtubeChannels && Boolean(youtubeChannels.length);
|
||||||
const hasPendingChannels = channels && channels.some(channel => channel.confirmations < 0);
|
const hasPendingChannels = channels && channels.some(channel => channel.confirmations < 0);
|
||||||
|
|
||||||
|
@ -60,7 +58,7 @@ export default function ChannelsPage(props: Props) {
|
||||||
<h2 className="section__title--large">{__('No Channels Created Yet')}</h2>
|
<h2 className="section__title--large">{__('No Channels Created Yet')}</h2>
|
||||||
|
|
||||||
<div className="section__actions">
|
<div className="section__actions">
|
||||||
<Button button="primary" label={__('New Channel')} onClick={() => openModal(MODALS.CREATE_CHANNEL)} />
|
<Button button="primary" label={__('New Channel')} navigate={`/$/${PAGES.CHANNEL_NEW}`} />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
Loading…
Add table
Reference in a new issue