Prettying stuff

This commit is contained in:
mrfry 2021-03-06 14:59:09 +01:00
parent 843f0a7dad
commit 34cc962ab4
16 changed files with 247 additions and 218 deletions

View file

@ -3,26 +3,19 @@ import React, { PureComponent } from 'react'
import Question from './Question.js'
class Subject extends PureComponent {
render () {
render() {
const { subj } = this.props
if (subj) {
return (
<div >
<div>
{subj.Questions.map((question, i) => {
return (
<Question
key={i}
question={question}
/>
)
return <Question key={i} question={question} />
})}
</div>
)
} else {
return (
<div />
)
return <div />
}
}
}