fix channels page

This commit is contained in:
Sean Yesmunt 2020-01-02 19:06:45 -05:00
parent 6a179790ee
commit 5d893bc420
2 changed files with 9 additions and 11 deletions

View file

@ -150,7 +150,7 @@ const Header = (props: Props) => {
<Icon aria-hidden icon={ICONS.PUBLISH} /> <Icon aria-hidden icon={ICONS.PUBLISH} />
{__('Publishes')} {__('Publishes')}
</MenuItem> </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} /> <Icon aria-hidden icon={ICONS.CHANNEL} />
{__('Channels')} {__('Channels')}
</MenuItem> </MenuItem>

View file

@ -40,16 +40,14 @@ export default function ChannelsPage(props: Props) {
{hasYoutubeChannels && <YoutubeTransferStatus hideChannelLink />} {hasYoutubeChannels && <YoutubeTransferStatus hideChannelLink />}
{channels && Boolean(channels.length) && ( {channels && Boolean(channels.length) && (
<div className="card"> <ClaimList
<ClaimList header={__('Your Channels')}
header={__('Your Channels')} loading={fetchingChannels}
loading={fetchingChannels} uris={channels.map(channel => channel.permanent_url)}
uris={channels.map(channel => channel.permanent_url)} headerAltControls={
headerAltControls={ <Button button="link" label={__('New Channel')} onClick={() => openModal(MODALS.CREATE_CHANNEL)} />
<Button button="link" label={__('New Channel')} onClick={() => openModal(MODALS.CREATE_CHANNEL)} /> }
} />
/>
</div>
)} )}
{!(channels && channels.length) && ( {!(channels && channels.length) && (
<React.Fragment> <React.Fragment>