Skip to content

Commit

Permalink
Improve layout
Browse files Browse the repository at this point in the history
  • Loading branch information
holly-cummins committed Feb 4, 2025
1 parent 9ebc584 commit 3fc24ce
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions src/templates/extensions-added-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ const ExtensionsAddedListTemplate = (
const date = new Date(+monthTimestamp)
const verb = now.getUTCMonth() === date.getUTCMonth() && now.getUTCFullYear() === date.getUTCFullYear() ? "have been" : "were"
const formattedMonth = prettyDate(monthTimestamp)
const name = `Extensions added in ${formattedMonth}`

if (extensions && extensions.length > 0) {

Expand All @@ -157,9 +158,6 @@ const ExtensionsAddedListTemplate = (

const countMessage = `${extensionCount} new extensions ${verb} added this month.`


const name = `Extensions added in ${formattedMonth}`

return (
<Layout location={location}>
<BreadcrumbBar name={name} />
Expand Down Expand Up @@ -188,10 +186,15 @@ const ExtensionsAddedListTemplate = (
)
} else {
return (
<div className="extensions-list" style={{ display: "flex" }}>
No new extensions {verb} added in {formattedMonth}.
{nav}
</div>
<Layout location={location}>
<BreadcrumbBar name={name} />
<ExtensionCardList>
<h4>
No new extensions {verb} added in {formattedMonth}.
</h4>
{nav}
</ExtensionCardList>
</Layout>
)
}
}
Expand Down

0 comments on commit 3fc24ce

Please sign in to comment.