swapped news and user forum

This commit is contained in:
mrfry 2022-12-04 19:09:43 +01:00
parent cf3edd8976
commit d301bcd17f
8 changed files with 54 additions and 185 deletions

View file

@ -4,7 +4,7 @@ import Forum from '../components/forum'
import styles from './index.module.css'
export default function Index({
export default function UserForum({
router,
globalData,
globalState,
@ -13,15 +13,9 @@ export default function Index({
const motd = globalData.motd
return (
<Forum
router={router}
globalState={globalState}
setGlobalState={setGlobalState}
globalData={globalData}
forumName={'frontpage'}
>
<>
{motd && (
<div className={styles.motd}>
<div className={styles.topMsg}>
<div className={styles.title}>MOTD</div>
{motd ? (
<div dangerouslySetInnerHTML={{ __html: motd }} />
@ -30,6 +24,14 @@ export default function Index({
)}
</div>
)}
</Forum>
<Forum
allowPost
router={router}
globalState={globalState}
setGlobalState={setGlobalState}
globalData={globalData}
forumName={'userForum'}
/>
</>
)
}