Initial commit, with fully working project :p

This commit is contained in:
MrFry 2020-03-25 13:25:41 +01:00
commit 53b4158967
21 changed files with 894 additions and 0 deletions

View file

@ -0,0 +1,38 @@
import React, { PureComponent } from 'react'
import Question from './Question.js'
import styles from './Questions.module.css'
class Questions extends PureComponent {
render () {
const { subjs, onChange, deleteQuestion } = this.props
return (
<div>
{subjs.map((subj, i) => {
return (
<div key={i}>
<div className={styles.subjName}>
{subj.Name}
</div>
{ subj.Questions.map((question, i) => {
return (
<Question
key={i}
question={question}
subjInd={subj.ind}
onChange={onChange}
deleteQuestion={deleteQuestion}
/>
)
})}
</div>
)
})}
</div>
)
}
}
export default Questions