mirror of
https://gitlab.com/MrFry/qmining-page
synced 2025-04-01 20:23:44 +02:00
not showing motd if its empty
This commit is contained in:
parent
42edd56d00
commit
d7fa02435f
1 changed files with 17 additions and 13 deletions
|
@ -286,19 +286,23 @@ export default function Index({ globalData }) {
|
||||||
}
|
}
|
||||||
|
|
||||||
const renderMotd = () => {
|
const renderMotd = () => {
|
||||||
return (
|
if (motd) {
|
||||||
<div className={styles.motd_body}>
|
return (
|
||||||
<div className={styles.title}>MOTD</div>
|
<div className={styles.motd_body}>
|
||||||
{motd ? (
|
<div className={styles.title}>MOTD</div>
|
||||||
<div
|
{motd ? (
|
||||||
className={styles.motd}
|
<div
|
||||||
dangerouslySetInnerHTML={{ __html: motd }}
|
className={styles.motd}
|
||||||
/>
|
dangerouslySetInnerHTML={{ __html: motd }}
|
||||||
) : (
|
/>
|
||||||
<div>...</div>
|
) : (
|
||||||
)}
|
<div>...</div>
|
||||||
</div>
|
)}
|
||||||
)
|
</div>
|
||||||
|
)
|
||||||
|
} else {
|
||||||
|
return null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue