mirror of
https://gitlab.com/MrFry/qmining-page
synced 2025-04-01 20:23:44 +02:00
removed user specific motd from index
This commit is contained in:
parent
dca3ebdbfb
commit
7d5b14456f
1 changed files with 18 additions and 18 deletions
|
@ -29,7 +29,7 @@ export default function Index(props) {
|
|||
const [news, setNews] = useState(null)
|
||||
const [allQrSelector, setAllQrSelector] = useState(null)
|
||||
const motd = props.globalData.motd
|
||||
const userSpecificMotd = props.globalData.userSpecificMotd
|
||||
// const userSpecificMotd = props.globalData.userSpecificMotd
|
||||
|
||||
useEffect(() => {
|
||||
console.info('Fetching news.json')
|
||||
|
@ -130,22 +130,22 @@ export default function Index(props) {
|
|||
)
|
||||
}
|
||||
|
||||
const renderUserSpecificMotd = () => {
|
||||
return (
|
||||
<div>
|
||||
<hr />
|
||||
<div className={styles.subtitle}>Üzenet admintól:</div>
|
||||
{userSpecificMotd ? (
|
||||
<div
|
||||
className={styles.motd}
|
||||
dangerouslySetInnerHTML={{ __html: userSpecificMotd.msg }}
|
||||
/>
|
||||
) : (
|
||||
<div>...</div>
|
||||
)}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
// const renderUserSpecificMotd = () => {
|
||||
// return (
|
||||
// <div>
|
||||
// <hr />
|
||||
// <div className={styles.subtitle}>Üzenet admintól:</div>
|
||||
// {userSpecificMotd ? (
|
||||
// <div
|
||||
// className={styles.motd}
|
||||
// dangerouslySetInnerHTML={{ __html: userSpecificMotd.msg }}
|
||||
// />
|
||||
// ) : (
|
||||
// <div>...</div>
|
||||
// )}
|
||||
// </div>
|
||||
// )
|
||||
// }
|
||||
|
||||
const renderDbSelector = () => {
|
||||
if (allQrSelector) {
|
||||
|
@ -213,7 +213,7 @@ export default function Index(props) {
|
|||
</div>
|
||||
<hr />
|
||||
{renderMotd()}
|
||||
{userSpecificMotd && renderUserSpecificMotd()}
|
||||
{/*{userSpecificMotd && renderUserSpecificMotd()} */}
|
||||
<hr />
|
||||
<hr />
|
||||
<Sleep />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue