Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 307 | Rev 312 | Ir a la última revisión | | Comparar con el anterior | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
306 geraldo 1
import React from "react";
2
import Question from "../question/Question";
3
 
4
const Section = (props) => {
307 geraldo 5
 
306 geraldo 6
    // get props
7
    const { section } = props;
8
 
9
    return (
10
        <div
307 geraldo 11
            className='tab-pane container fade in'
306 geraldo 12
            id={section.slug_section}>
307 geraldo 13
            <div
14
                dangerouslySetInnerHTML={{ __html: section.text }}
15
                className="description"
310 geraldo 16
            />
306 geraldo 17
            <div className="row">
18
                {section.questions.map((question, key) => {
19
                    return <Question question={question} key={key} />;
20
                })}
21
            </div>
22
        </div>
23
    )
24
}
25
 
26
export default Section;