Skip to content

Commit

Permalink
Run "yarn lint:fix" to apply Emotion 11 codemod fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Vadorequest committed Jan 10, 2021
1 parent 1b9aab8 commit 110662f
Show file tree
Hide file tree
Showing 37 changed files with 47 additions and 45 deletions.
2 changes: 2 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/**
* Babel configuration for Next.js
*
* @see https://nextjs.org/docs/advanced-features/customizing-babel-config Official doc reference v10
* @see https://github.com/vercel/next.js/blob/canary/packages/next/build/babel/preset.ts You can take a look at this file to learn about the presets included by next/babel.
* @see https://emotion.sh/docs/css-prop##babel-preset Configuring Emotion 11
Expand Down
2 changes: 1 addition & 1 deletion src/components/ComponentTemplate.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { css } from '@emotion/core';
import { css } from '@emotion/react';
import React from 'react';

import Text from './utils/Text';
Expand Down
2 changes: 1 addition & 1 deletion src/components/animations/Loader.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { css } from '@emotion/core';
import { css } from '@emotion/react';
import React from 'react';

import AnimatedLoader from '../svg/AnimatedLoader';
Expand Down
2 changes: 1 addition & 1 deletion src/components/appBootstrap/BrowserPageBootstrap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
import * as Sentry from '@sentry/node';
import { createLogger } from '@unly/utils-simple-logger';
import { AmplitudeClient } from 'amplitude-js';
import { useTheme } from 'emotion-theming';
import { useTheme } from '@emotion/react';
import React from 'react';
import { useTranslation } from 'react-i18next';
import useCustomer from '../../hooks/useCustomer';
Expand Down
2 changes: 1 addition & 1 deletion src/components/appBootstrap/MultiversalAppBootstrap.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as Sentry from '@sentry/node';
import { isBrowser } from '@unly/utils';
import { createLogger } from '@unly/utils-simple-logger';
import { ThemeProvider } from 'emotion-theming';
import { ThemeProvider } from '@emotion/react';
import { i18n } from 'i18next';
import find from 'lodash.find';
import includes from 'lodash.includes';
Expand Down
2 changes: 1 addition & 1 deletion src/components/appBootstrap/MultiversalGlobalStyles.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {
css,
Global,
} from '@emotion/core';
} from '@emotion/react';
import React from 'react';
import { NRN_DEFAULT_FALLBACK_FONTS } from '../../constants';
import { CustomerTheme } from '../../types/data/CustomerTheme';
Expand Down
2 changes: 1 addition & 1 deletion src/components/data/ProductRow.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { css } from '@emotion/core';
import { css } from '@emotion/react';
import React from 'react';
import {
Col,
Expand Down
2 changes: 1 addition & 1 deletion src/components/data/Products.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { css } from '@emotion/core';
import { css } from '@emotion/react';
import map from 'lodash.map';
import React from 'react';
import { Container } from 'reactstrap';
Expand Down
2 changes: 1 addition & 1 deletion src/components/doc/DocPage.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { css } from '@emotion/core';
import { css } from '@emotion/react';
import React, { ReactNode } from 'react';

type Props = {
Expand Down
2 changes: 1 addition & 1 deletion src/components/doc/DocSection.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { css } from '@emotion/core';
import { css } from '@emotion/react';
import React, { ReactNode } from 'react';

type Props = {
Expand Down
2 changes: 1 addition & 1 deletion src/components/doc/IntroductionSection.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { css } from '@emotion/core';
import { css } from '@emotion/react';
import React from 'react';
import {
Alert,
Expand Down
2 changes: 1 addition & 1 deletion src/components/doc/SidebarFooter.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { css } from '@emotion/core';
import { css } from '@emotion/react';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import React from 'react';
import { useTranslation } from 'react-i18next';
Expand Down
2 changes: 1 addition & 1 deletion src/components/doc/SidebarToggle.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { css } from '@emotion/core';
import { css } from '@emotion/react';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import React from 'react';

Expand Down
2 changes: 1 addition & 1 deletion src/components/errors/DefaultErrorLayout.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { css } from '@emotion/core';
import { css } from '@emotion/react';
import * as Sentry from '@sentry/node';
import * as React from 'react';
import { Button } from 'reactstrap';
Expand Down
2 changes: 1 addition & 1 deletion src/components/errors/ErrorDebug.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { css } from '@emotion/core';
import { css } from '@emotion/react';
import * as React from 'react';
import { Fragment } from 'react';

Expand Down
4 changes: 2 additions & 2 deletions src/components/pageLayouts/DefaultPageContainer.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { css } from '@emotion/core';
import { css } from '@emotion/react';
import classnames from 'classnames';
import { useTheme } from 'emotion-theming';
import { useTheme } from '@emotion/react';
import React from 'react';
import { Container } from 'reactstrap';

Expand Down
4 changes: 2 additions & 2 deletions src/components/pageLayouts/Footer.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { css } from '@emotion/core';
import { useTheme } from 'emotion-theming';
import { css } from '@emotion/react';
import { useTheme } from '@emotion/react';
import React from 'react';
import { useTranslation } from 'react-i18next';

Expand Down
4 changes: 2 additions & 2 deletions src/components/pageLayouts/Nav.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { Amplitude } from '@amplitude/react-amplitude';
import { css } from '@emotion/core';
import { css } from '@emotion/react';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import classnames from 'classnames';
import { useTheme } from 'emotion-theming';
import { useTheme } from '@emotion/react';
import kebabCase from 'lodash.kebabcase';
import map from 'lodash.map';
import {
Expand Down
4 changes: 2 additions & 2 deletions src/components/pageLayouts/PreviewModeBanner.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { css } from '@emotion/core';
import { css } from '@emotion/react';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { useTheme } from 'emotion-theming';
import { useTheme } from '@emotion/react';
import {
NextRouter,
useRouter,
Expand Down
4 changes: 2 additions & 2 deletions src/components/pageLayouts/QuickPreviewBanner.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { css } from '@emotion/core';
import { css } from '@emotion/react';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { createLogger } from '@unly/utils-simple-logger';
import { useTheme } from 'emotion-theming';
import { useTheme } from '@emotion/react';
import {
NextRouter,
useRouter,
Expand Down
2 changes: 1 addition & 1 deletion src/components/pageLayouts/QuickPreviewLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {
Amplitude,
LogOnMount,
} from '@amplitude/react-amplitude';
import { css } from '@emotion/core';
import { css } from '@emotion/react';
import { createLogger } from '@unly/utils-simple-logger';
import React from 'react';
import { Container } from 'reactstrap';
Expand Down
4 changes: 2 additions & 2 deletions src/components/utils/Btn.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { css } from '@emotion/core';
import { css } from '@emotion/react';
import classnames from 'classnames';
import { useTheme } from 'emotion-theming';
import { useTheme } from '@emotion/react';
import React, { ReactNode } from 'react';
import { CustomerTheme } from '../../types/data/CustomerTheme';
import { ReactButtonProps } from '../../types/react/ReactButtonProps';
Expand Down
2 changes: 1 addition & 1 deletion src/components/utils/Buttons.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { css } from '@emotion/core';
import { css } from '@emotion/react';
import React, { Fragment } from 'react';
import { Row } from 'reactstrap';
import Btn from './Btn';
Expand Down
2 changes: 1 addition & 1 deletion src/components/utils/Cards.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { css } from '@emotion/core';
import { css } from '@emotion/react';
import classnames from 'classnames';
import React, { ReactNode } from 'react';
import { CardDeck } from 'reactstrap';
Expand Down
4 changes: 2 additions & 2 deletions src/components/utils/CircleBtn.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { css } from '@emotion/core';
import { useTheme } from 'emotion-theming';
import { css } from '@emotion/react';
import { useTheme } from '@emotion/react';
import React from 'react';
import { CustomerTheme } from '../../types/data/CustomerTheme';
import { ReactDivProps } from '../../types/react/ReactDivProps';
Expand Down
2 changes: 1 addition & 1 deletion src/components/utils/EllipsisText.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { css } from '@emotion/core';
import { css } from '@emotion/react';
import React, { ReactNode } from 'react';

type Props = {
Expand Down
2 changes: 1 addition & 1 deletion src/components/utils/LanguageSelector.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { css } from '@emotion/core';
import { css } from '@emotion/react';
import React from 'react';

type Props = {}
Expand Down
4 changes: 2 additions & 2 deletions src/components/utils/LegalContent.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { css } from '@emotion/core';
import { useTheme } from 'emotion-theming';
import { css } from '@emotion/react';
import { useTheme } from '@emotion/react';
import React from 'react';
import { Container } from 'reactstrap';
import { CustomerTheme } from '../../types/data/CustomerTheme';
Expand Down
4 changes: 2 additions & 2 deletions src/components/utils/Stamp.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { css } from '@emotion/core';
import { useTheme } from 'emotion-theming';
import { css } from '@emotion/react';
import { useTheme } from '@emotion/react';
import React, { ReactNode } from 'react';
import { CustomerTheme } from '../../types/data/CustomerTheme';

Expand Down
2 changes: 1 addition & 1 deletion src/components/utils/ToggleButton.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { css } from '@emotion/core';
import { css } from '@emotion/react';
import React from 'react';

type Props = {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/404.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { css } from '@emotion/core';
import { css } from '@emotion/react';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { createLogger } from '@unly/utils-simple-logger';
import {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Amplitude } from '@amplitude/react-amplitude';
import { css } from '@emotion/core';
import { css } from '@emotion/react';
import { createLogger } from '@unly/utils-simple-logger';
import {
GetStaticPaths,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { css } from '@emotion/core';
import { css } from '@emotion/react';
import { createLogger } from '@unly/utils-simple-logger';
import {
GetStaticPaths,
Expand Down
2 changes: 1 addition & 1 deletion src/pages/[locale]/examples/built-in-utilities/api.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { css } from '@emotion/core';
import { css } from '@emotion/react';
import { createLogger } from '@unly/utils-simple-logger';
import {
GetStaticPaths,
Expand Down
2 changes: 1 addition & 1 deletion src/pages/[locale]/examples/built-in-utilities/hocs.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { css } from '@emotion/core';
import { css } from '@emotion/react';
import { createLogger } from '@unly/utils-simple-logger';
import {
GetStaticPaths,
Expand Down
2 changes: 1 addition & 1 deletion src/pages/[locale]/examples/built-in-utilities/hooks.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { css } from '@emotion/core';
import { css } from '@emotion/react';
import { createLogger } from '@unly/utils-simple-logger';
import {
GetStaticPaths,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { css } from '@emotion/core';
import { css } from '@emotion/react';
import { createLogger } from '@unly/utils-simple-logger';
import deepmerge from 'deepmerge';
import map from 'lodash.map';
Expand Down

0 comments on commit 110662f

Please sign in to comment.