mirror of
https://gitlab.com/MrFry/qmining-page
synced 2025-04-01 20:23:44 +02:00
Minor chages including class name rename, max entries to load on front page
This commit is contained in:
parent
b88a4d9c9e
commit
a91fa4a7fe
8 changed files with 417 additions and 15 deletions
|
@ -78,6 +78,7 @@ export default function AllQuestions({ router }) {
|
|||
const [selectedDb, setSelectedDb] = useState('')
|
||||
const [data, setData] = useState(null)
|
||||
const [fetchingData, setFetchingData] = useState(false)
|
||||
|
||||
const subjectCount = data ? data.length : 0
|
||||
const questionCount = data ? data.reduce(countReducer, 0) : 0
|
||||
|
||||
|
@ -296,6 +297,8 @@ export default function AllQuestions({ router }) {
|
|||
</div>
|
||||
)}
|
||||
</>
|
||||
) : fetchingData ? (
|
||||
<LoadingIndicator />
|
||||
) : null}
|
||||
</div>
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue