Modal fix in header

This commit is contained in:
Frikky
2024-05-22 01:23:57 +02:00
parent 71a37b4e68
commit 714fa9fbc4
+14 -17
View File
@@ -68,7 +68,6 @@ const App = (message, props) => {
const [isLoggedIn, setIsLoggedIn] = useState(false) const [isLoggedIn, setIsLoggedIn] = useState(false)
const [dataset, setDataset] = useState(false) const [dataset, setDataset] = useState(false)
const [isLoaded, setIsLoaded] = useState(false) const [isLoaded, setIsLoaded] = useState(false)
const [modalOpen, setModalOpen] = useState(false)
const [curpath, setCurpath] = useState(typeof window === "undefined" || window.location === undefined ? "" : window.location.pathname) const [curpath, setCurpath] = useState(typeof window === "undefined" || window.location === undefined ? "" : window.location.pathname)
@@ -195,24 +194,22 @@ const App = (message, props) => {
<div style={{ minHeight: 68, maxHeight: 68, }}> <div style={{ minHeight: 68, maxHeight: 68, }}>
<Header <Header
notifications={notifications} notifications={notifications}
setNotifications={setNotifications} setNotifications={setNotifications}
checkLogin={checkLogin} checkLogin={checkLogin}
cookies={cookies} cookies={cookies}
removeCookie={removeCookie} removeCookie={removeCookie}
isLoaded={isLoaded} isLoaded={isLoaded}
globalUrl={globalUrl} globalUrl={globalUrl}
setIsLoggedIn={setIsLoggedIn} setIsLoggedIn={setIsLoggedIn}
isLoggedIn={isLoggedIn} isLoggedIn={isLoggedIn}
userdata={userdata} userdata={userdata}
setModalOpen={setModalOpen} curpath={curpath}
modalOpen={modalOpen} serverside={false}
curpath={curpath} isMobile={false}
serverside={false}
isMobile={false}
{...props} {...props}
/> />
</div> </div>