mirror of
https://gitlab.com/MrFry/qmining-page
synced 2025-04-01 20:23:44 +02:00
Reaction sorting, minor style and usability fixes
This commit is contained in:
parent
2488aa2a11
commit
933b453498
14 changed files with 67 additions and 94 deletions
|
@ -3,7 +3,6 @@ import fetch from 'unfetch'
|
|||
import Head from 'next/head'
|
||||
|
||||
import LoadingIndicator from '../components/LoadingIndicator'
|
||||
import Sleep from '../components/sleep'
|
||||
|
||||
import styles from './ranklist.module.css'
|
||||
import constants from '../constants.json'
|
||||
|
@ -114,12 +113,9 @@ export default function RankList({ globalData }) {
|
|||
getList()
|
||||
}, [])
|
||||
|
||||
useEffect(
|
||||
() => {
|
||||
getList()
|
||||
},
|
||||
[since]
|
||||
)
|
||||
useEffect(() => {
|
||||
getList()
|
||||
}, [since])
|
||||
|
||||
const list =
|
||||
ranklist &&
|
||||
|
@ -156,7 +152,6 @@ export default function RankList({ globalData }) {
|
|||
frissülnek.
|
||||
</p>
|
||||
</div>
|
||||
<Sleep />
|
||||
<div className={'selectContainer'}>
|
||||
<div>Megjelenítés: </div>
|
||||
<select
|
||||
|
@ -235,8 +230,9 @@ export default function RankList({ globalData }) {
|
|||
{list.map((listItem, i) => {
|
||||
return (
|
||||
<div
|
||||
className={`${styles.row} ${listItem.userId ===
|
||||
selfUserId && styles.selfRow}`}
|
||||
className={`${styles.row} ${
|
||||
listItem.userId === selfUserId && styles.selfRow
|
||||
}`}
|
||||
key={i}
|
||||
>
|
||||
<div>{listItem.rank + 1}</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue