1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00

fix usage of next/css

This commit is contained in:
nkzawa 2016-10-25 17:16:54 +09:00
parent becae90375
commit 83400a8f38
8 changed files with 8 additions and 8 deletions

View file

@ -50,7 +50,7 @@ We use [glamor](https://github.com/threepointone/glamor) to provide a great buil
```jsx
import React from 'react'
import { style } from 'next/css'
import style from 'next/css'
export default () => (
<div className={style}>

View file

@ -1,5 +1,5 @@
import React from 'react'
import { style } from 'next/css'
import style from 'next/css'
export default () => (
<div className={styles}>

View file

@ -1,5 +1,5 @@
import React from 'react'
import { style } from 'next/css'
import style from 'next/css'
export default ({ children }) => (
<p className={styles}>{children}</p>

View file

@ -1,5 +1,5 @@
import React from 'react'
import { style } from 'next/css'
import style from 'next/css'
export default ({ title, children }) => (
<div className={mainStyle}>

View file

@ -1,7 +1,7 @@
import React from 'react'
import P from '../components/paragraph'
import Post from '../components/post'
import { style } from 'next/css'
import style from 'next/css'
export default () => (
<div className={styles.main}>

View file

@ -1,7 +1,7 @@
import React from 'react'
import stripAnsi from 'strip-ansi'
import Head from 'next/head'
import { style } from 'next/css'
import style from 'next/css'
export default class ErrorDebug extends React.Component {
static getInitialProps ({ err }) {

View file

@ -1,5 +1,5 @@
import React from 'react'
import { style, merge } from 'next/css'
import style, { merge } from 'next/css'
export default class Error extends React.Component {
static getInitialProps ({ res, xhr }) {

View file

@ -1,5 +1,5 @@
import React from 'react'
import { style } from 'next/css'
import style from 'next/css'
export default () => <div className={styles}>This is red</div>