mirror of
https://gitlab.com/MrFry/qmining-page
synced 2025-04-01 20:23:44 +02:00
Removed reaction sorting
This commit is contained in:
parent
933b453498
commit
2ab3915448
1 changed files with 20 additions and 26 deletions
|
@ -25,13 +25,7 @@ function ExistingReacts({ existingReacts, onClick, uid }) {
|
||||||
<div className={styles.reactionContainer}>
|
<div className={styles.reactionContainer}>
|
||||||
<div className={styles.react_bttn}>Reakció</div>
|
<div className={styles.react_bttn}>Reakció</div>
|
||||||
{existingReacts &&
|
{existingReacts &&
|
||||||
Object.keys(existingReacts)
|
Object.keys(existingReacts).map((key) => {
|
||||||
.sort((akey, bkey) => {
|
|
||||||
const a = existingReacts[akey]
|
|
||||||
const b = existingReacts[bkey]
|
|
||||||
return a.length < b.length
|
|
||||||
})
|
|
||||||
.map((key) => {
|
|
||||||
const currReact = existingReacts[key]
|
const currReact = existingReacts[key]
|
||||||
const react = reactions[key]
|
const react = reactions[key]
|
||||||
if (!react) {
|
if (!react) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue