mirror of
https://gitlab.com/MrFry/qmining-page
synced 2025-04-01 20:23:44 +02:00
Question searcher / subject browser improving
This commit is contained in:
parent
748a2d826c
commit
e317ac08b7
6 changed files with 179 additions and 3 deletions
|
@ -2,12 +2,11 @@ import React, { useState, useEffect } from 'react'
|
|||
import fetch from 'unfetch'
|
||||
|
||||
import LoadingIndicator from '../components/LoadingIndicator.js'
|
||||
import Questions from '../components/Questions.js'
|
||||
import QuestionSearchResult from '../components/QuestionSearchResult.js'
|
||||
|
||||
import constants from '../constants.json'
|
||||
|
||||
export default function AllQuestions (props) {
|
||||
console.log('AllQuestions module render')
|
||||
const [data, setData] = useState(null)
|
||||
const [searchTerm, setSearchTerm] = useState('')
|
||||
|
||||
|
@ -35,7 +34,7 @@ export default function AllQuestions (props) {
|
|||
</div>
|
||||
<hr />
|
||||
<div>
|
||||
<Questions
|
||||
<QuestionSearchResult
|
||||
data={data}
|
||||
searchTerm={searchTerm}
|
||||
/>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue