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:
parent
becae90375
commit
83400a8f38
|
@ -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}>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import React from 'react'
|
||||
import { style } from 'next/css'
|
||||
import style from 'next/css'
|
||||
|
||||
export default () => (
|
||||
<div className={styles}>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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}>
|
||||
|
|
|
@ -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}>
|
||||
|
|
|
@ -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 }) {
|
||||
|
|
|
@ -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 }) {
|
||||
|
|
2
test/fixtures/basic/pages/css.js
vendored
2
test/fixtures/basic/pages/css.js
vendored
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in a new issue