Minor chages including class name rename, max entries to load on front page

This commit is contained in:
mrfry 2021-04-20 10:19:02 +02:00
parent b88a4d9c9e
commit a91fa4a7fe
8 changed files with 417 additions and 15 deletions

View file

@ -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>
)