Question searcher / subject browser improving

This commit is contained in:
MrFry 2020-03-22 17:28:00 +01:00
parent 748a2d826c
commit e317ac08b7
6 changed files with 179 additions and 3 deletions

View 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