_app fixed and updated
- rm warning - simplifyed
This commit is contained in:
1 parent
5071b0292d
commit
657832e0e0
1 file changed
+4
-7
+4
-7
@@ -1,12 +1,11 @@
|
|||||||
import React from 'react'
|
import App from 'next/app'
|
||||||
import App, { Container } from 'next/app'
|
|
||||||
|
|
||||||
class MyApp extends App {
|
export default class MyApp extends App {
|
||||||
render() {
|
render() {
|
||||||
const { Component, pageProps } = this.props
|
const { Component, pageProps } = this.props
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Container>
|
<>
|
||||||
<style global jsx>{`
|
<style global jsx>{`
|
||||||
@media (max-width: 31.25em) {
|
@media (max-width: 31.25em) {
|
||||||
:root {
|
:root {
|
||||||
@@ -35,9 +34,7 @@ class MyApp extends App {
|
|||||||
`}</style>
|
`}</style>
|
||||||
|
|
||||||
<Component {...pageProps} />
|
<Component {...pageProps} />
|
||||||
</Container>
|
</>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export default MyApp
|
|
||||||
Reference in new issue
Block a user