refactors, dynamic constants (lol)

This commit is contained in:
mrfry
2023-03-29 19:12:41 +02:00
parent 755891710a
commit d4553896af
25 changed files with 323 additions and 312 deletions
+13 -10
View File
@@ -8,7 +8,7 @@ import UpDownVote from '../components/upDownVote'
import Header from '../components/header'
import styles from './userfiles.module.css'
import constants from '../constants.json'
import constants from '../constants'
function vote(to, item) {
return new Promise((resolve, reject) => {
@@ -382,7 +382,11 @@ export default function UserFiles({
<div className={`${styles.tableContainer} ${styles.rows}`}>
{currDir && (
<div
style={{ height: 40, justifyContent: "center", display: "flex" }}
style={{
height: 40,
justifyContent: 'center',
display: 'flex',
}}
onClick={() => {
goBack()
}}
@@ -482,13 +486,14 @@ export default function UserFiles({
onClick={(e) => {
e.stopPropagation()
}}
className={'userId'}>
className={'userId'}
>
{`#${user}`}
</Link>
))}
</div>
</div>
);
)
})}
</>
) : (
@@ -513,7 +518,7 @@ export default function UserFiles({
<LoadingIndicator />
)}
</div>
);
)
}
return (
@@ -535,10 +540,8 @@ export default function UserFiles({
vállalás nincs.
</b>{' '}
Ha valami nem idevalót látsz, azt a{' '}
<Link href="/contact">
Kapcsolat
</Link>{' '}
oldalon jelezd kérlek. Tudatos károkozásért ban jár.
<Link href="/contact">Kapcsolat</Link> oldalon jelezd kérlek. Tudatos
károkozásért ban jár.
</div>
)}
<hr />
@@ -602,5 +605,5 @@ export default function UserFiles({
</Modal>
)}
</div>
);
)
}