mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-25 23:05:23 +00:00
Re-ran Prettier after version bump
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
* Copyright (c) 2013-present, Facebook, Inc.
|
||||
*
|
||||
* @emails react-core
|
||||
*/
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ exports.sourceNodes = async ({boundActionCreators}) => {
|
||||
});
|
||||
} catch (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);
|
||||
|
||||
@@ -146,7 +146,8 @@ class CodeEditor extends Component {
|
||||
<input
|
||||
checked={this.state.showJSX}
|
||||
onChange={event =>
|
||||
this.setState({showJSX: event.target.checked})}
|
||||
this.setState({showJSX: event.target.checked})
|
||||
}
|
||||
type="checkbox"
|
||||
/>{' '}
|
||||
JSX?
|
||||
|
||||
@@ -97,8 +97,9 @@ const MarkdownPage = ({
|
||||
<div css={{marginTop: 80}}>
|
||||
<a
|
||||
css={sharedStyles.articleLayout.editLink}
|
||||
href={`https://github.com/reactjs/reactjs.org/tree/master/content/${markdownRemark
|
||||
.fields.path}`}>
|
||||
href={`https://github.com/reactjs/reactjs.org/tree/master/content/${
|
||||
markdownRemark.fields.path
|
||||
}`}>
|
||||
Edit this page
|
||||
</a>
|
||||
</div>
|
||||
|
||||
@@ -52,9 +52,7 @@ const Acknowlegements = ({data, location}) => (
|
||||
</li>
|
||||
<li>
|
||||
<a href="http://christopheraue.net/">Christopher Aue</a> for
|
||||
letting us use the <a href="http://reactjs.com/">
|
||||
reactjs.com
|
||||
</a>{' '}
|
||||
letting us use the <a href="http://reactjs.com/">reactjs.com</a>{' '}
|
||||
domain name and the{' '}
|
||||
<a href="https://twitter.com/reactjs">@reactjs</a> username on
|
||||
Twitter.
|
||||
@@ -70,9 +68,7 @@ const Acknowlegements = ({data, location}) => (
|
||||
<a href="https://github.com/react">react</a> org on GitHub.
|
||||
</li>
|
||||
<li>
|
||||
<a href="https://github.com/voronianski">
|
||||
Dmitri Voronianski
|
||||
</a>{' '}
|
||||
<a href="https://github.com/voronianski">Dmitri Voronianski</a>{' '}
|
||||
for letting us use the{' '}
|
||||
<a href="https://labs.voronianski.com/oceanic-next-color-scheme/">
|
||||
Oceanic Next
|
||||
|
||||
10
src/theme.js
10
src/theme.js
@@ -45,14 +45,16 @@ type Size = $Keys<typeof SIZES>;
|
||||
const media = {
|
||||
between(smallKey: Size, largeKey: Size, excludeLarge: boolean = false) {
|
||||
if (excludeLarge) {
|
||||
return `@media (min-width: ${SIZES[smallKey]
|
||||
.min}px) and (max-width: ${SIZES[largeKey].min - 1}px)`;
|
||||
return `@media (min-width: ${
|
||||
SIZES[smallKey].min
|
||||
}px) and (max-width: ${SIZES[largeKey].min - 1}px)`;
|
||||
} else {
|
||||
if (SIZES[largeKey].max === Infinity) {
|
||||
return `@media (min-width: ${SIZES[smallKey].min}px)`;
|
||||
} else {
|
||||
return `@media (min-width: ${SIZES[smallKey]
|
||||
.min}px) and (max-width: ${SIZES[largeKey].max}px)`;
|
||||
return `@media (min-width: ${SIZES[smallKey].min}px) and (max-width: ${
|
||||
SIZES[largeKey].max
|
||||
}px)`;
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user