aboutsummaryrefslogtreecommitdiffstats
path: root/components/Layout.js
diff options
context:
space:
mode:
Diffstat (limited to 'components/Layout.js')
-rw-r--r--components/Layout.js20
1 files changed, 7 insertions, 13 deletions
diff --git a/components/Layout.js b/components/Layout.js
index ac9534f..c4cc553 100644
--- a/components/Layout.js
+++ b/components/Layout.js
@@ -1,31 +1,25 @@
import styles from 'styles/Main.module.scss'
import React from 'react'
-import Head from 'next/head'
-import {Header, Popup, Splash} from 'components'
+import { Header, Popup, Splash } from 'components'
import useSettings from 'hooks/useSettings'
import PropTypes from 'prop-types'
const Layout = ({
children,
apps,
- setApps,
+ setApps
}) => {
- const {settings} = useSettings()
+ const { settings } = useSettings()
if (!settings || !settings.theme || !settings.language) return <Splash fixed />
return (
- <section className={styles.layout +' '+ settings.theme}>
- <Head>
- <title>My Apps</title>
- <meta name="viewport"
- content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
- </Head>
+ <section className={styles.layout + ' ' + settings.theme}>
<main>
- <div className="container">{children}</div>
+ <div className='container'>{children}</div>
</main>
<Header apps={apps} setApps={setApps} />
- <Popup/>
+ <Popup />
</section>
)
}
@@ -33,5 +27,5 @@ const Layout = ({
export default Layout
Layout.propTypes = {
- children: PropTypes.node,
+ children: PropTypes.node
}