mirror of
https://gitlab.com/MrFry/qmining-page
synced 2025-04-01 20:23:44 +02:00
Fixed error on donate mouseover, and hiding everything till loading in allQuestions
This commit is contained in:
parent
0f3841a2b4
commit
0d679a611a
2 changed files with 28 additions and 22 deletions
|
@ -97,11 +97,15 @@ export default function Layout({
|
||||||
</Link>
|
</Link>
|
||||||
)
|
)
|
||||||
})}
|
})}
|
||||||
<Link href={`/donate`}>
|
<a
|
||||||
<a className="donate" onClick={closeSideBar} target="_blank">
|
href={`/donate`}
|
||||||
|
className="donate"
|
||||||
|
onClick={closeSideBar}
|
||||||
|
target="_blank"
|
||||||
|
rel="noreferrer"
|
||||||
|
>
|
||||||
Donate
|
Donate
|
||||||
</a>
|
</a>
|
||||||
</Link>
|
|
||||||
</div>
|
</div>
|
||||||
<div className="userStatus">
|
<div className="userStatus">
|
||||||
<div
|
<div
|
||||||
|
|
|
@ -235,7 +235,9 @@ export default function AllQuestions({ router }) {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
{dbs && renderDbSelector()}
|
{dbs ? (
|
||||||
|
<>
|
||||||
|
{renderDbSelector()}
|
||||||
{data && `${questionCount} kérdés, ${subjectCount} tárgy`}
|
{data && `${questionCount} kérdés, ${subjectCount} tárgy`}
|
||||||
<div className={styles.typeSelector}>
|
<div className={styles.typeSelector}>
|
||||||
<div
|
<div
|
||||||
|
@ -251,8 +253,8 @@ export default function AllQuestions({ router }) {
|
||||||
Tárgyak
|
Tárgyak
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{dbs ? (
|
|
||||||
<div>{asd ? renderSubjectBrowser() : renderQuestionBrowser()}</div>
|
<div>{asd ? renderSubjectBrowser() : renderQuestionBrowser()}</div>
|
||||||
|
</>
|
||||||
) : (
|
) : (
|
||||||
<LoadingIndicator />
|
<LoadingIndicator />
|
||||||
)}
|
)}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue