mirror of
https://gitlab.com/MrFry/qmining-page
synced 2025-04-01 20:23:44 +02:00
swapped news and user forum
This commit is contained in:
parent
cf3edd8976
commit
d301bcd17f
8 changed files with 54 additions and 185 deletions
|
@ -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'}
|
||||
/>
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue