Add sync yt button on channels page

This commit is contained in:
Rafael 2022-05-03 10:26:46 -03:00 committed by Thomas Zarebczan
parent ff238978e9
commit a770e0a8a9
2 changed files with 16 additions and 4 deletions

View file

@ -55,15 +55,19 @@ export default function ChannelsPage(props: Props) {
return ( return (
<Page className="channelsPage-wrapper"> <Page className="channelsPage-wrapper">
{/* TODO: use variabled spacing */} <h1 className="section__title section__title--margin-bottom">{__('Active channel')}</h1>
<h1 className="section__title" style={{ marginBottom: '15px' }}>
{__('Active channel')}
</h1>
<ChannelSelector /> <ChannelSelector />
<div className="card-stack"> <div className="card-stack">
{hasYoutubeChannels && <YoutubeTransferStatus hideChannelLink />} {hasYoutubeChannels && <YoutubeTransferStatus hideChannelLink />}
<Button
button="primary"
label={__('Sync YouTube Channel')}
icon={ICONS.YOUTUBE}
navigate={`/$/${PAGES.YOUTUBE_SYNC}`}
/>
{channelUrls && Boolean(channelUrls.length) && ( {channelUrls && Boolean(channelUrls.length) && (
<ClaimList <ClaimList
showMemberBadge showMemberBadge

View file

@ -742,6 +742,14 @@ $actions-z-index: 2;
} }
.channelsPage-wrapper { .channelsPage-wrapper {
.section__title {
margin-top: var(--spacing-m);
}
.section__title--margin-bottom {
margin-top: 0px;
margin-bottom: var(--spacing-m);
}
.claim-preview__wrapper--channel { .claim-preview__wrapper--channel {
position: relative; position: relative;
border-radius: var(--border-radius); border-radius: var(--border-radius);