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:
		@@ -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 />
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user