mirror of
https://github.com/status-im/ETHReport.git
synced 2025-02-09 04:53:27 +00:00
Adding <p> tags to interview json and parsing into html
This commit is contained in:
parent
7fabd4ef5b
commit
d7570d9aa9
@ -1,5 +1,6 @@
|
||||
import React from 'react';
|
||||
import { PropTypes } from 'prop-types';
|
||||
import Parser from 'html-react-parser';
|
||||
import Modal from '../../modal';
|
||||
import './style.scss';
|
||||
|
||||
@ -18,7 +19,7 @@ const SingleInterview = props => (
|
||||
return (
|
||||
<div key={`question-${question.id}`}>
|
||||
<p className="question">{index + 1}) { question.text }</p>
|
||||
<p className="answer">{ interview.answer }</p>
|
||||
<p className="answer">{ Parser(interview.answer) }</p>
|
||||
</div>
|
||||
);
|
||||
})
|
||||
|
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user