mirror of
https://gitlab.com/MrFry/qmining-page
synced 2025-04-01 20:23:44 +02:00
npm packages update
This commit is contained in:
parent
ed507dc39f
commit
32522097c0
51 changed files with 3247 additions and 5187 deletions
23
src/components/Subject.jsx
Normal file
23
src/components/Subject.jsx
Normal file
|
@ -0,0 +1,23 @@
|
|||
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
|
Loading…
Add table
Add a link
Reference in a new issue