Skip to content

Commit 9b15f77

Browse files
committed
Upgrades Emotion to v11
1 parent 5bee3f4 commit 9b15f77

37 files changed

+259
-168
lines changed

babel.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module.exports = {
22
plugins: [
3-
'emotion',
3+
'@emotion',
44
['@babel/plugin-proposal-class-properties', { loose: true }],
55
'@babel/plugin-transform-runtime',
66
],

docs/App/Footer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// @flow
22
/** @jsx jsx */
33
import { type Node } from 'react';
4-
import { jsx } from '@emotion/core';
4+
import { jsx } from '@emotion/react';
55

66
// const smallDevice = '@media (max-width: 769px)';
77
const largeDevice = '@media (min-width: 770px)';

docs/App/GitHubButton.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// @flow
22
/** @jsx jsx */
3-
import { jsx } from '@emotion/core';
3+
import { jsx } from '@emotion/react';
44

55
type Props = { count: number, repo: string };
66

docs/App/Header.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/** @jsx jsx */
33
import fetch from 'unfetch';
44
import { Component, type Node } from 'react';
5-
import { jsx } from '@emotion/core';
5+
import { jsx } from '@emotion/react';
66
import { withRouter } from 'react-router-dom';
77

88
import Select from 'react-select';

docs/App/PageNav.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// @flow
22
/** @jsx jsx */
33
import { Component, type ElementRef } from 'react';
4-
import { jsx } from '@emotion/core';
4+
import { jsx } from '@emotion/react';
55
import { Route, Switch } from 'react-router-dom';
66

77
import type { RouterProps } from '../types';

docs/App/TwitterButton.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// @flow
22
/** @jsx jsx */
3-
import { jsx } from '@emotion/core';
3+
import { jsx } from '@emotion/react';
44

55
const TwitterButton = () => (
66
<div css={{ alignItems: 'center', display: 'inline-flex' }}>

docs/App/components.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/** @jsx jsx */
33
import { Component, type ElementConfig } from 'react';
44
import { Link, withRouter } from 'react-router-dom';
5-
import { jsx } from '@emotion/core';
5+
import { jsx } from '@emotion/react';
66

77
const navWidth = 180;
88
const appWidth = 800;

docs/ExampleWrapper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/** @jsx jsx */
2-
import { jsx } from '@emotion/core'; // eslint-disable-line no-unused-vars
2+
import { jsx } from '@emotion/react'; // eslint-disable-line no-unused-vars
33
import { Component } from 'react';
44
import CodeSandboxer from 'react-codesandboxer';
55
import { CodeBlock } from './markdown/renderer';

docs/Svg.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// @flow
22
/** @jsx jsx */
3-
import { jsx } from '@emotion/core';
3+
import { jsx } from '@emotion/react';
44

55
const Svg = ({ size, ...props }: { size: number }) => (
66
<svg

docs/examples/Experimental.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// @flow
22
/** @jsx jsx */
33
import { Component } from 'react';
4-
import { jsx } from '@emotion/core';
4+
import { jsx } from '@emotion/react';
55
import moment from 'moment';
66
import chrono from 'chrono-node';
77

0 commit comments

Comments
 (0)