mirror of
https://gitlab.com/MrFry/qmining-page
synced 2025-04-01 20:23:44 +02:00
user files rename
This commit is contained in:
parent
ff13eebfe1
commit
9ef2c10af1
5 changed files with 31 additions and 17 deletions
|
@ -115,12 +115,9 @@ export default function Layout({
|
|||
const userId = globalData.userId
|
||||
const userSpecificMotd = globalData.userSpecificMotd
|
||||
|
||||
useEffect(
|
||||
() => {
|
||||
setDonateShowing(!!router.query.donate)
|
||||
},
|
||||
[router.query.donate]
|
||||
)
|
||||
useEffect(() => {
|
||||
setDonateShowing(!!router.query.donate)
|
||||
}, [router.query.donate])
|
||||
|
||||
let href = router.route
|
||||
if (href === '/' || href === '') {
|
||||
|
@ -181,9 +178,7 @@ export default function Layout({
|
|||
border: 'none',
|
||||
margin: '1px',
|
||||
}}
|
||||
src={`${
|
||||
constants.siteUrl
|
||||
}img/frylabs-logo_small_transparent.png`}
|
||||
src={`${constants.siteUrl}img/frylabs-logo_small_transparent.png`}
|
||||
alt="FryLabs"
|
||||
/>
|
||||
</a>
|
||||
|
@ -195,6 +190,10 @@ export default function Layout({
|
|||
<div id="sideBarLinks" className={styles.sidebarLinks}>
|
||||
{Object.keys(tabs).map((key) => {
|
||||
const item = tabs[key]
|
||||
if (item.seperator) {
|
||||
return <hr key={key} />
|
||||
}
|
||||
|
||||
return (
|
||||
<Link href={item.href} key={key}>
|
||||
<a
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue