From 7d5b14456f8666e52df19206ece84f6068049c26 Mon Sep 17 00:00:00 2001 From: mrfry Date: Tue, 26 Jan 2021 10:25:30 +0100 Subject: [PATCH] removed user specific motd from index --- src/pages/index.js | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/src/pages/index.js b/src/pages/index.js index c3c7bf8..c9e5a9e 100644 --- a/src/pages/index.js +++ b/src/pages/index.js @@ -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 ( -
-
-
Üzenet admintól:
- {userSpecificMotd ? ( -
- ) : ( -
...
- )} -
- ) - } + // const renderUserSpecificMotd = () => { + // return ( + //
+ //
+ //
Üzenet admintól:
+ // {userSpecificMotd ? ( + //
+ // ) : ( + //
...
+ // )} + //
+ // ) + // } const renderDbSelector = () => { if (allQrSelector) { @@ -213,7 +213,7 @@ export default function Index(props) {

{renderMotd()} - {userSpecificMotd && renderUserSpecificMotd()} + {/*{userSpecificMotd && renderUserSpecificMotd()} */}