Changed lotsa stuff 2

This commit is contained in:
mrfry 2021-03-23 20:00:52 +01:00
parent 7bb7b919ae
commit 1f90e62ac3
10 changed files with 119 additions and 190 deletions

View file

@ -6,6 +6,7 @@ import QuestionSearchResult from '../components/QuestionSearchResult.js'
import Subject from '../components/Subject.js'
import SubjectSelector from '../components/SubjectSelector.js'
import Sleep from '../components/sleep'
import ExternalLinkIcon from '../components/externalLinkIcon'
import styles from './allQuestions.module.css'
@ -258,23 +259,21 @@ export default function AllQuestions({ router }) {
>
Tárgyak
</div>
<div>
<a
onClick={() => {
if (selectedDb === 'all') {
window.open(`${constants.apiUrl}allqr.txt`, '_blank')
} else {
window.open(
`${constants.apiUrl}allqr.txt?db=${selectedDb}`,
'_blank'
)
}
}}
className={styles.button}
>
{'Kérdések letöltése'}
</a>
</div>
<a
onClick={() => {
if (selectedDb === 'all') {
window.open(`${constants.apiUrl}allqr.txt`, '_blank')
} else {
window.open(
`${constants.apiUrl}allqr.txt?db=${selectedDb}`,
'_blank'
)
}
}}
>
{'Kérdések letöltése'}
<ExternalLinkIcon size={15} />
</a>
</div>
{fetchingData ? (
<LoadingIndicator />