Browse Source

Re-ran Prettier after version bump

main
Brian Vaughn 7 years ago
parent
commit
bb55d1083b
  1. 2
      gatsby-config.js
  2. 4
      plugins/gatsby-source-react-error-codes/gatsby-node.js
  3. 3
      src/components/CodeEditor/CodeEditor.js
  4. 5
      src/components/MarkdownPage/MarkdownPage.js
  5. 8
      src/pages/acknowledgements.html.js
  6. 10
      src/theme.js

2
gatsby-config.js

@ -2,7 +2,7 @@
* Copyright (c) 2013-present, Facebook, Inc. * Copyright (c) 2013-present, Facebook, Inc.
* *
* @emails react-core * @emails react-core
*/ */
'use strict'; 'use strict';

4
plugins/gatsby-source-react-error-codes/gatsby-node.js

@ -20,7 +20,9 @@ exports.sourceNodes = async ({boundActionCreators}) => {
}); });
} catch (error) { } catch (error) {
console.error( console.error(
`The gatsby-source-react-error-codes plugin has failed:\n${error.message}`, `The gatsby-source-react-error-codes plugin has failed:\n${
error.message
}`,
); );
process.exit(1); process.exit(1);

3
src/components/CodeEditor/CodeEditor.js

@ -146,7 +146,8 @@ class CodeEditor extends Component {
<input <input
checked={this.state.showJSX} checked={this.state.showJSX}
onChange={event => onChange={event =>
this.setState({showJSX: event.target.checked})} this.setState({showJSX: event.target.checked})
}
type="checkbox" type="checkbox"
/>{' '} />{' '}
JSX? JSX?

5
src/components/MarkdownPage/MarkdownPage.js

@ -97,8 +97,9 @@ const MarkdownPage = ({
<div css={{marginTop: 80}}> <div css={{marginTop: 80}}>
<a <a
css={sharedStyles.articleLayout.editLink} css={sharedStyles.articleLayout.editLink}
href={`https://github.com/reactjs/reactjs.org/tree/master/content/${markdownRemark href={`https://github.com/reactjs/reactjs.org/tree/master/content/${
.fields.path}`}> markdownRemark.fields.path
}`}>
Edit this page Edit this page
</a> </a>
</div> </div>

8
src/pages/acknowledgements.html.js

@ -52,9 +52,7 @@ const Acknowlegements = ({data, location}) => (
</li> </li>
<li> <li>
<a href="http://christopheraue.net/">Christopher Aue</a> for <a href="http://christopheraue.net/">Christopher Aue</a> for
letting us use the <a href="http://reactjs.com/"> letting us use the <a href="http://reactjs.com/">reactjs.com</a>{' '}
reactjs.com
</a>{' '}
domain name and the{' '} domain name and the{' '}
<a href="https://twitter.com/reactjs">@reactjs</a> username on <a href="https://twitter.com/reactjs">@reactjs</a> username on
Twitter. Twitter.
@ -70,9 +68,7 @@ const Acknowlegements = ({data, location}) => (
<a href="https://github.com/react">react</a> org on GitHub. <a href="https://github.com/react">react</a> org on GitHub.
</li> </li>
<li> <li>
<a href="https://github.com/voronianski"> <a href="https://github.com/voronianski">Dmitri Voronianski</a>{' '}
Dmitri Voronianski
</a>{' '}
for letting us use the{' '} for letting us use the{' '}
<a href="https://labs.voronianski.com/oceanic-next-color-scheme/"> <a href="https://labs.voronianski.com/oceanic-next-color-scheme/">
Oceanic Next Oceanic Next

10
src/theme.js

@ -45,14 +45,16 @@ type Size = $Keys<typeof SIZES>;
const media = { const media = {
between(smallKey: Size, largeKey: Size, excludeLarge: boolean = false) { between(smallKey: Size, largeKey: Size, excludeLarge: boolean = false) {
if (excludeLarge) { if (excludeLarge) {
return `@media (min-width: ${SIZES[smallKey] return `@media (min-width: ${
.min}px) and (max-width: ${SIZES[largeKey].min - 1}px)`; SIZES[smallKey].min
}px) and (max-width: ${SIZES[largeKey].min - 1}px)`;
} else { } else {
if (SIZES[largeKey].max === Infinity) { if (SIZES[largeKey].max === Infinity) {
return `@media (min-width: ${SIZES[smallKey].min}px)`; return `@media (min-width: ${SIZES[smallKey].min}px)`;
} else { } else {
return `@media (min-width: ${SIZES[smallKey] return `@media (min-width: ${SIZES[smallKey].min}px) and (max-width: ${
.min}px) and (max-width: ${SIZES[largeKey].max}px)`; SIZES[largeKey].max
}px)`;
} }
} }
}, },

Loading…
Cancel
Save