npm packages update

This commit is contained in:
mrfry 2023-03-09 16:31:34 +01:00
parent ed507dc39f
commit 32522097c0
51 changed files with 3247 additions and 5187 deletions

37
src/pages/index.jsx Normal file
View file

@ -0,0 +1,37 @@
import React from 'react'
import Forum from '../components/forum'
import styles from './index.module.css'
export default function UserForum({
router,
globalData,
globalState,
setGlobalState,
}) {
const motd = globalData.motd
return (
<>
{motd && (
<div className={styles.topMsg}>
<div className={styles.title}>MOTD</div>
{motd ? (
<div dangerouslySetInnerHTML={{ __html: motd }} />
) : (
<div>...</div>
)}
</div>
)}
<Forum
allowPost
router={router}
globalState={globalState}
setGlobalState={setGlobalState}
globalData={globalData}
forumName={'userForum'}
/>
</>
)
}