aboutsummaryrefslogtreecommitdiffstats
path: root/components/Layout.js
diff options
context:
space:
mode:
authorGravatar piotrruss <mail@pruss.it> 2021-09-24 23:25:25 +0200
committerGravatar piotrruss <mail@pruss.it> 2021-09-25 00:00:08 +0200
commitcf1fbb69d7cdb67219be187fc38feea5a6325f45 (patch)
treec55870c8c3a15fcb68c5cc07255c97306c42191a /components/Layout.js
parentaac64c2b068e937f939cdefed7af4f08bcb8b3eb (diff)
downloadmy_apps-cf1fbb69d7cdb67219be187fc38feea5a6325f45.tar.gz
my_apps-cf1fbb69d7cdb67219be187fc38feea5a6325f45.tar.bz2
my_apps-cf1fbb69d7cdb67219be187fc38feea5a6325f45.zip
fixed first spinner
Diffstat (limited to 'components/Layout.js')
-rw-r--r--components/Layout.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/Layout.js b/components/Layout.js
index 572e961..7caa5a5 100644
--- a/components/Layout.js
+++ b/components/Layout.js
@@ -1,6 +1,6 @@
import styles from 'styles/Main.module.scss'
import React from 'react'
-import { Header, Popup, Splash } from 'components'
+import { Header, Popup } from 'components'
import useSettings from 'hooks/useSettings'
import PropTypes from 'prop-types'
@@ -9,7 +9,7 @@ const Layout = ({
}) => {
const { settings } = useSettings()
- if (!settings || !settings.theme || !settings.language) return <Splash fixed />
+ if (!settings || !settings.theme || !settings.language) return null
return (
<section className={styles.layout + ' ' + settings.theme}>