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:
parent
3a6337bea5
commit
46047de126
3 changed files with 13 additions and 2 deletions
|
@ -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} />
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -145,6 +145,15 @@
|
|||
.section__subtitle {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.button {
|
||||
font-size: var(--font-large);
|
||||
|
||||
.icon {
|
||||
height: 20px;
|
||||
width: 20px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.card__body {
|
||||
|
|
Loading…
Reference in a new issue