Adding <p> tags to interview json and parsing into html

This commit is contained in:
Sharyn 2018-07-17 11:46:08 +02:00
parent 7fabd4ef5b
commit d7570d9aa9
2 changed files with 707 additions and 707 deletions

View File

@ -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