mirror of
https://gitlab.com/MrFry/qmining-page
synced 2025-04-01 20:23:44 +02:00
Logo change, showing popup when user has msg
This commit is contained in:
parent
e5138adf66
commit
6a133a6c56
1 changed files with 17 additions and 1 deletions
|
@ -25,6 +25,7 @@ export default function Layout({
|
||||||
const [sidebarOpen, setSidebarOpen] = useState(true)
|
const [sidebarOpen, setSidebarOpen] = useState(true)
|
||||||
const [windowSize, setWindowSize] = useState([100, 200])
|
const [windowSize, setWindowSize] = useState([100, 200])
|
||||||
const [showMotdModal, setShowMotdModal] = useState(false)
|
const [showMotdModal, setShowMotdModal] = useState(false)
|
||||||
|
const [showNewMsgModal, setShowNewMsgModal] = useState(true)
|
||||||
|
|
||||||
const userId = globalData.userId
|
const userId = globalData.userId
|
||||||
const userSpecificMotd = globalData.userSpecificMotd
|
const userSpecificMotd = globalData.userSpecificMotd
|
||||||
|
@ -78,7 +79,13 @@ export default function Layout({
|
||||||
<div />
|
<div />
|
||||||
<div />
|
<div />
|
||||||
</span>
|
</span>
|
||||||
<div className="sidebarheader">Frylabs</div>
|
<div className="sidebarheader">
|
||||||
|
<img
|
||||||
|
style={{ maxWidth: '100%' }}
|
||||||
|
src={`${constants.siteUrl}img/frylabs-logo_small_transparent.png`}
|
||||||
|
alt="Frylabs"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{sidebarOpen ? (
|
{sidebarOpen ? (
|
||||||
<>
|
<>
|
||||||
|
@ -160,6 +167,15 @@ export default function Layout({
|
||||||
) : null}
|
) : null}
|
||||||
</div>
|
</div>
|
||||||
<div className="content">{children}</div>
|
<div className="content">{children}</div>
|
||||||
|
{userSpecificMotd && !userSpecificMotd.seen && showNewMsgModal ? (
|
||||||
|
<Modal
|
||||||
|
closeClick={() => {
|
||||||
|
setShowNewMsgModal(false)
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
Új üzeneted van, kattints 📬-ra bal alul megtekintéséhez!
|
||||||
|
</Modal>
|
||||||
|
) : null}
|
||||||
<BB />
|
<BB />
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue