Skip to content
This repository has been archived by the owner on Jul 18, 2024. It is now read-only.

Commit

Permalink
fix: don't show list page header with no libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Smith authored and arbrandes committed Oct 25, 2022
1 parent 1d0561c commit 2cd6b2f
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/library-authoring/list-libraries/LibraryListPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,22 +109,22 @@ export class LibraryListPage extends React.Component {

return (
<>
<div className="wrapper-mast wrapper">
<header className="mast has-actions">
<ActionRow>
<h1 className="page-header">{intl.formatMessage(messages['library.list.page.heading'])}</h1>
<ActionRow.Spacer />
{libraries.count !== 0 && (
{libraries.count !== 0 && (
<div className="wrapper-mast wrapper">
<header className="mast has-actions">
<ActionRow>
<h1 className="page-header">{intl.formatMessage(messages['library.list.page.heading'])}</h1>
<ActionRow.Spacer />
<Button
variant="outline-primary"
onClick={this.goToCreateLibraryPage}
variant="outline-primary"
onClick={this.goToCreateLibraryPage}
>
{intl.formatMessage(messages['library.list.new.library'])}
</Button>
)}
</ActionRow>
</header>
</div>
</ActionRow>
</header>
</div>
)}
<div className="wrapper-content wrapper">
<section className="content">
<article className="content-primary" role="main">
Expand Down

0 comments on commit 2cd6b2f

Please sign in to comment.