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
34
src/components/Questions.js
Normal file
34
src/components/Questions.js
Normal file
|
@ -0,0 +1,34 @@
|
|||
import React, { PureComponent } from 'react'
|
||||
|
||||
import Question from './Question.js'
|
||||
|
||||
import styles from './Questions.module.css'
|
||||
|
||||
class Questions extends PureComponent {
|
||||
render () {
|
||||
const { subjs } = this.props
|
||||
|
||||
return (
|
||||
<div>
|
||||
{subjs.map((subj) => {
|
||||
return (
|
||||
<div>
|
||||
<div className={styles.subjName}>
|
||||
{subj.Name}
|
||||
</div>
|
||||
{ subj.Questions.map((question) => {
|
||||
return (
|
||||
<Question
|
||||
question={question}
|
||||
/>
|
||||
)
|
||||
})}
|
||||
</div>
|
||||
)
|
||||
})}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
export default Questions
|
Loading…
Add table
Add a link
Reference in a new issue