diff --git a/package.json b/package.json index c0a7e716..8109fe36 100644 --- a/package.json +++ b/package.json @@ -28,14 +28,13 @@ "timeago.js": "^4.0.2" }, "peerDependencies": { - "@emotion/core": "^10.0.28", + "@emotion/react": "^11.1.5", "@guardian/src-button": "^3.3.0", "@guardian/src-foundations": "^3.3.0", "@guardian/src-icons": "^3.3.0", "@guardian/src-link": "^3.3.0", "@guardian/src-text-input": "^3.3.0", "@guardian/types": "^3.0.0", - "emotion": "^10.0.27", "react": "^17.0.1", "react-dom": "^17.0.1", "typescript": "^4.1.3" @@ -68,7 +67,6 @@ "@types/react-dom": "^17.0.1", "babel-loader": "^8.2.2", "babel-plugin-const-enum": "^1.0.1", - "emotion": "^10.0.27", "eslint-plugin-react-hooks": "^4.0.4", "fetch-mock": "^9.3.1", "husky": "^4.2.3", diff --git a/src/App.stories.tsx b/src/App.stories.tsx index e80a908b..9587627d 100644 --- a/src/App.stories.tsx +++ b/src/App.stories.tsx @@ -1,6 +1,6 @@ import React from 'react'; import { App } from './App'; -import { css } from 'emotion'; +import { css } from '@emotion/react'; import { Pillar } from '@guardian/types'; @@ -25,7 +25,7 @@ const aUser: UserProfile = { export const LoggedOutHiddenPicks = () => (
(
(
(
(
(
(
(
(
+
{user && !isClosedForComments && ( )} {picks && picks.length ? ( -
+
{!!picks.length && ( ) : ( -