Skip to content

Commit

Permalink
Apply Prettier formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Pantheon Bot committed Dec 17, 2024
1 parent cd2c5f0 commit d5d22f2
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/components/releases.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,12 @@ const Releases = ({ data }) => {
const oneYearAgo = subYears(new Date(), 1);

// Filter releases that are newer than one year
const filteredReleases = data.allTerminusReleasesJson.edges.filter((release) =>
isAfter(parseISO(release.node.fields.markdownBody.childMdx.body.published_at), oneYearAgo)
const filteredReleases = data.allTerminusReleasesJson.edges.filter(
(release) =>
isAfter(
parseISO(release.node.fields.markdownBody.childMdx.body.published_at),
oneYearAgo,
),
);

return (
Expand All @@ -28,7 +32,9 @@ const Releases = ({ data }) => {
{release.node.tag_name}
</h3>
<MDXProvider components={shortcodes}>
<MDXRenderer>{release.node.fields.markdownBody.childMdx.body}</MDXRenderer>
<MDXRenderer>
{release.node.fields.markdownBody.childMdx.body}
</MDXRenderer>
</MDXProvider>
<hr />
</div>
Expand Down

0 comments on commit d5d22f2

Please sign in to comment.