Skip to content

Commit a6883c0

Browse files
committed
Apply Prettier formatting
1 parent 39f1bab commit a6883c0

File tree

2 files changed

+33
-20
lines changed

2 files changed

+33
-20
lines changed

src/templates/certificationpage.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ class CertificationTemplate extends React.Component {
3636
<SEO
3737
slot="seo"
3838
title={node.frontmatter.subtitle + ' | ' + node.frontmatter.title}
39-
description={node.frontmatter.description || node.frontmatter.subtitle}
39+
description={
40+
node.frontmatter.description || node.frontmatter.subtitle
41+
}
4042
authors={node.frontmatter.contributors}
4143
image={'/images/assets/terminus-thumbLarge.png'}
4244
reviewed={ifCommandsISO}

src/templates/releaseNotePage.js

Lines changed: 30 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,37 @@
1-
import React from "react"
2-
import { Link, graphql } from "gatsby"
3-
import Layout from "../layout/layout"
4-
import SEO from "../layout/seo"
5-
import ReleaseNoteCategories from "../components/ReleaseNoteCategories"
6-
import MdxWrapper from "../components/mdxWrapper.js"
7-
import PublishedDate from "../components/PublishedDate"
8-
import { Container, Icon } from "@pantheon-systems/pds-toolkit-react"
1+
import React from 'react';
2+
import { Link, graphql } from 'gatsby';
3+
import Layout from '../layout/layout';
4+
import SEO from '../layout/seo';
5+
import ReleaseNoteCategories from '../components/ReleaseNoteCategories';
6+
import MdxWrapper from '../components/mdxWrapper.js';
7+
import PublishedDate from '../components/PublishedDate';
8+
import { Container, Icon } from '@pantheon-systems/pds-toolkit-react';
99
import {
1010
headline2,
1111
headline3,
1212
headline4,
13-
} from "../components/releaseHeadlines"
13+
} from '../components/releaseHeadlines';
1414

1515
const customShortcodes = {
1616
h1: headline2,
1717
h2: headline3,
1818
h3: headline4,
19-
}
19+
};
2020

2121
// Set container width for search and main content.
22-
const containerWidth = "standard"
22+
const containerWidth = 'standard';
2323

2424
class ReleaseNoteTemplate extends React.Component {
2525
render() {
26-
const node = this.props.data.mdx
26+
const node = this.props.data.mdx;
2727

2828
return (
2929
<Layout containerWidth={containerWidth} excludeSearch footerBorder>
3030
<SEO
3131
title={node.frontmatter.title}
3232
description="A summary of changes to the Pantheon Platform"
3333
authors={node.frontmatter.contributors}
34-
image={"/images/assets/default-thumb-doc.png"}
34+
image={'/images/assets/default-thumb-doc.png'}
3535
/>
3636
<main id="docs-main" tabIndex="-1">
3737
<Container
@@ -59,30 +59,41 @@ class ReleaseNoteTemplate extends React.Component {
5959
dateString={node.frontmatter.published_date}
6060
className="pds-spacing-mar-block-end-m"
6161
/>
62-
<MdxWrapper mdx={node.body} customShortcodes={customShortcodes} />
62+
<MdxWrapper
63+
mdx={node.body}
64+
customShortcodes={customShortcodes}
65+
/>
6366
</div>
6467
</div>
6568

6669
<div className="pds-spacing-mar-block-4xl">
67-
<a href="/release-notes/rss.xml" target="_blank" className="rss-feed-link">
68-
<Icon className="rss-feed-link-icon" iconName='rss' iconSize='lg' />
70+
<a
71+
href="/release-notes/rss.xml"
72+
target="_blank"
73+
className="rss-feed-link"
74+
>
75+
<Icon
76+
className="rss-feed-link-icon"
77+
iconName="rss"
78+
iconSize="lg"
79+
/>
6980
<span>Subscribe to RSS feed</span>
7081
</a>
7182
</div>
7283
</article>
7384
</Container>
7485
</main>
7586
</Layout>
76-
)
87+
);
7788
}
7889
}
7990

80-
export default ReleaseNoteTemplate
91+
export default ReleaseNoteTemplate;
8192

8293
export const pageQuery = graphql`
8394
query ReleaseNoteBySlug($slug: String!) {
8495
mdx(fields: { slug: { eq: $slug } }) {
8596
...theReleaseNoteFields
8697
}
8798
}
88-
`
99+
`;

0 commit comments

Comments
 (0)