From a8a626275e7fe850b0230e8b0ce1eb6d8359865d Mon Sep 17 00:00:00 2001 From: Ritesh Kumar Date: Tue, 3 Oct 2017 20:40:02 +0530 Subject: [PATCH] add CSS to emotion --- components/Layout.js | 28 +- package.json | 23 +- pages/css-to-emotion.js | 142 +++ utils/routes.js | 5 + yarn.lock | 1875 ++++++++++++++++++++++++++++++--------- 5 files changed, 1626 insertions(+), 447 deletions(-) create mode 100644 pages/css-to-emotion.js diff --git a/components/Layout.js b/components/Layout.js index dfa5321..71d77e0 100644 --- a/components/Layout.js +++ b/components/Layout.js @@ -1,4 +1,4 @@ -import React, { PureComponent } from 'react' +import React, { PureComponent, Component } from 'react' import isBrowser from 'is-in-browser' import Link from 'next/link' import Head from 'next/head' @@ -38,6 +38,24 @@ function Logo () { ) } +class CodeSponsor extends Component { + shouldComponentUpdate () { + return false + } + + render () { + return ( +
+
+