html: move meta viewport to _app
This commit is contained in:
parent
9f46f7dc4a
commit
7851fbbbc8
@ -1,5 +1,6 @@
|
||||
import Layout from 'Components/Layout';
|
||||
import type { AppProps } from 'next/app';
|
||||
import Head from 'next/head';
|
||||
import { ThemeProvider } from 'styled-components';
|
||||
import { GlobalStyle } from 'UIKit/colors';
|
||||
import theme from 'UIKit/theme';
|
||||
@ -8,6 +9,12 @@ import '../styles/globals.css';
|
||||
function App({ Component, pageProps }: AppProps) {
|
||||
return (
|
||||
<ThemeProvider theme={theme}>
|
||||
<Head>
|
||||
<meta
|
||||
name="viewport"
|
||||
content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=0"
|
||||
/>
|
||||
</Head>
|
||||
<GlobalStyle />
|
||||
<Layout>
|
||||
<Component {...pageProps} />
|
||||
|
||||
@ -36,10 +36,7 @@ export default class MyDocument extends Document {
|
||||
}
|
||||
crossOrigin="use-credentials"
|
||||
/>
|
||||
<meta
|
||||
name="viewport"
|
||||
content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=0"
|
||||
/>
|
||||
|
||||
<meta name="theme-color" content="#000000" />
|
||||
<meta name="description" content="Лизинговый калькулятор Эволюция" />
|
||||
<link
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user