mirror of
https://gitlab.com/MrFry/qmining-page
synced 2025-04-01 20:23:44 +02:00
23 lines
426 B
JavaScript
23 lines
426 B
JavaScript
import React, { PureComponent } from 'react'
|
|
|
|
import Question from './Question'
|
|
|
|
class Subject extends PureComponent {
|
|
render() {
|
|
const { subj } = this.props
|
|
|
|
if (subj) {
|
|
return (
|
|
<div>
|
|
{subj.Questions.map((question, i) => {
|
|
return <Question key={i} question={question} />
|
|
})}
|
|
</div>
|
|
)
|
|
} else {
|
|
return <div />
|
|
}
|
|
}
|
|
}
|
|
|
|
export default Subject
|