Skip to content

Commit 4086ea8

Browse files
author
Brian Vaughn
committed
Prettier and Flow fix
1 parent 019447c commit 4086ea8

File tree

3 files changed

+14
-7
lines changed

3 files changed

+14
-7
lines changed

src/components/LayoutHeader/Header.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,10 @@ const Header = ({location}: {location: Location}) => (
189189
href="/translations">
190190
<svg width="20" height="20" viewBox="0 0 24 24">
191191
<path fill="none" d="M0 0h24v24H0z" />
192-
<path fill="currentColor" d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zm6.93 6h-2.95c-.32-1.25-.78-2.45-1.38-3.56 1.84.63 3.37 1.91 4.33 3.56zM12 4.04c.83 1.2 1.48 2.53 1.91 3.96h-3.82c.43-1.43 1.08-2.76 1.91-3.96zM4.26 14C4.1 13.36 4 12.69 4 12s.1-1.36.26-2h3.38c-.08.66-.14 1.32-.14 2 0 .68.06 1.34.14 2H4.26zm.82 2h2.95c.32 1.25.78 2.45 1.38 3.56-1.84-.63-3.37-1.9-4.33-3.56zm2.95-8H5.08c.96-1.66 2.49-2.93 4.33-3.56C8.81 5.55 8.35 6.75 8.03 8zM12 19.96c-.83-1.2-1.48-2.53-1.91-3.96h3.82c-.43 1.43-1.08 2.76-1.91 3.96zM14.34 14H9.66c-.09-.66-.16-1.32-.16-2 0-.68.07-1.35.16-2h4.68c.09.65.16 1.32.16 2 0 .68-.07 1.34-.16 2zm.25 5.56c.6-1.11 1.06-2.31 1.38-3.56h2.95c-.96 1.65-2.49 2.93-4.33 3.56zM16.36 14c.08-.66.14-1.32.14-2 0-.68-.06-1.34-.14-2h3.38c.16.64.26 1.31.26 2s-.1 1.36-.26 2h-3.38z" />
192+
<path
193+
fill="currentColor"
194+
d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zm6.93 6h-2.95c-.32-1.25-.78-2.45-1.38-3.56 1.84.63 3.37 1.91 4.33 3.56zM12 4.04c.83 1.2 1.48 2.53 1.91 3.96h-3.82c.43-1.43 1.08-2.76 1.91-3.96zM4.26 14C4.1 13.36 4 12.69 4 12s.1-1.36.26-2h3.38c-.08.66-.14 1.32-.14 2 0 .68.06 1.34.14 2H4.26zm.82 2h2.95c.32 1.25.78 2.45 1.38 3.56-1.84-.63-3.37-1.9-4.33-3.56zm2.95-8H5.08c.96-1.66 2.49-2.93 4.33-3.56C8.81 5.55 8.35 6.75 8.03 8zM12 19.96c-.83-1.2-1.48-2.53-1.91-3.96h3.82c-.43 1.43-1.08 2.76-1.91 3.96zM14.34 14H9.66c-.09-.66-.16-1.32-.16-2 0-.68.07-1.35.16-2h4.68c.09.65.16 1.32.16 2 0 .68-.07 1.34-.16 2zm.25 5.56c.6-1.11 1.06-2.31 1.38-3.56h2.95c-.96 1.65-2.49 2.93-4.33 3.56zM16.36 14c.08-.66.14-1.32.14-2 0-.68-.06-1.34-.14-2h3.38c.16.64.26 1.31.26 2s-.1 1.36-.26 2h-3.38z"
195+
/>
193196
</svg>
194197
</a>
195198
<a

src/pages/translations.js

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,24 +23,27 @@ const Translations = () => (
2323
<TitleAndMetaTags title="React - Translations" />
2424
<div css={sharedStyles.markdown}>
2525
<p>
26-
React docs have been translated by the community into the following languages:
26+
React docs have been translated by the community into the following
27+
languages:
2728
</p>
2829
<ul>
2930
{languages.map(language => (
3031
<li key={language}>
31-
<Link
32-
to={`/${language}/docs/hello-world.html`}>
32+
<Link to={`/${language}/docs/hello-world.html`}>
3333
{language}
3434
</Link>
3535
</li>
3636
))}
3737
</ul>
3838
<p>
39-
Visit <a
39+
Visit{' '}
40+
<a
4041
href="https://crowdin.com/project/react"
4142
target="_blank"
42-
rel="noopener">crowdin.com/project/react
43-
</a> if you would like to contribute to these translations.
43+
rel="noopener">
44+
crowdin.com/project/react
45+
</a>{' '}
46+
if you would like to contribute to these translations.
4447
</p>
4548
</div>
4649
</div>

src/types.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ export type Node = {
1414
excerpt: string,
1515
fields: {
1616
date?: string,
17+
id: string,
1718
path: string,
1819
redirect: string,
1920
slug: string,

0 commit comments

Comments
 (0)