added clearPublish when user selects new publish from the navbar

added clearPublish() to the 'new publish' link on user's publish page if they have previously published

menu drop-down does not clear publishes && increase size of button font in card headers

increased size of card header button icons
This commit is contained in:
Dalton 2020-01-08 18:50:48 -06:00 committed by Sean Yesmunt
parent 3a6337bea5
commit 46047de126
3 changed files with 13 additions and 2 deletions

View file

@ -147,7 +147,7 @@ const Header = (props: Props) => {
<MenuList className="menu__list--header">
<MenuItem className="menu__link" onSelect={() => history.push(`/$/${PAGES.PUBLISH}`)}>
<Icon aria-hidden icon={ICONS.PUBLISH} />
{__('New Publish')}
{__('Publish')}
</MenuItem>
<MenuItem className="menu__link" onSelect={openChannelCreate}>
<Icon aria-hidden icon={ICONS.CHANNEL} />

View file

@ -36,7 +36,9 @@ function FileListPublished(props: Props) {
loading={fetching}
persistedStorageKey="claim-list-published"
uris={urls}
headerAltControls={<Button button="link" label={__('New Publish')} navigate="/$/publish" />}
headerAltControls={
<Button button="link" label={__('New Publish')} navigate="/$/publish" onClick={() => clearPublish()} />
}
/>
<Paginate totalPages={Math.ceil(Number(urlTotal) / Number(PAGE_SIZE))} loading={fetching} />
</React.Fragment>

View file

@ -145,6 +145,15 @@
.section__subtitle {
margin-bottom: 0;
}
.button {
font-size: var(--font-large);
.icon {
height: 20px;
width: 20px;
}
}
}
.card__body {