fix channels page
This commit is contained in:
parent
6a179790ee
commit
5d893bc420
2 changed files with 9 additions and 11 deletions
|
@ -150,7 +150,7 @@ const Header = (props: Props) => {
|
|||
<Icon aria-hidden icon={ICONS.PUBLISH} />
|
||||
{__('Publishes')}
|
||||
</MenuItem>
|
||||
<MenuItem className="menu__link" onSelect={() => history.push(`/$/${PAGES.PUBLISHED}`)}>
|
||||
<MenuItem className="menu__link" onSelect={() => history.push(`/$/${PAGES.CHANNELS}`)}>
|
||||
<Icon aria-hidden icon={ICONS.CHANNEL} />
|
||||
{__('Channels')}
|
||||
</MenuItem>
|
||||
|
|
|
@ -40,16 +40,14 @@ export default function ChannelsPage(props: Props) {
|
|||
{hasYoutubeChannels && <YoutubeTransferStatus hideChannelLink />}
|
||||
|
||||
{channels && Boolean(channels.length) && (
|
||||
<div className="card">
|
||||
<ClaimList
|
||||
header={__('Your Channels')}
|
||||
loading={fetchingChannels}
|
||||
uris={channels.map(channel => channel.permanent_url)}
|
||||
headerAltControls={
|
||||
<Button button="link" label={__('New Channel')} onClick={() => openModal(MODALS.CREATE_CHANNEL)} />
|
||||
}
|
||||
/>
|
||||
</div>
|
||||
<ClaimList
|
||||
header={__('Your Channels')}
|
||||
loading={fetchingChannels}
|
||||
uris={channels.map(channel => channel.permanent_url)}
|
||||
headerAltControls={
|
||||
<Button button="link" label={__('New Channel')} onClick={() => openModal(MODALS.CREATE_CHANNEL)} />
|
||||
}
|
||||
/>
|
||||
)}
|
||||
{!(channels && channels.length) && (
|
||||
<React.Fragment>
|
||||
|
|
Loading…
Reference in a new issue