Skip to content

Commit

Permalink
fix usage of next/css
Browse files Browse the repository at this point in the history
  • Loading branch information
nkzawa committed Oct 25, 2016
1 parent becae90 commit 83400a8
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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}>
Expand Down
2 changes: 1 addition & 1 deletion examples/basic-css/pages/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import { style } from 'next/css'
import style from 'next/css'

export default () => (
<div className={styles}>
Expand Down
2 changes: 1 addition & 1 deletion examples/nested-components/components/paragraph.js
Original file line number Diff line number Diff line change
@@ -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>
Expand Down
2 changes: 1 addition & 1 deletion examples/nested-components/components/post.js
Original file line number Diff line number Diff line change
@@ -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}>
Expand Down
2 changes: 1 addition & 1 deletion examples/nested-components/pages/index.js
Original file line number Diff line number Diff line change
@@ -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}>
Expand Down
2 changes: 1 addition & 1 deletion pages/_error-debug.js
Original file line number Diff line number Diff line change
@@ -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 }) {
Expand Down
2 changes: 1 addition & 1 deletion pages/_error.js
Original file line number Diff line number Diff line change
@@ -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 }) {
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/basic/pages/css.js
Original file line number Diff line number Diff line change
@@ -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>

Expand Down

0 comments on commit 83400a8

Please sign in to comment.