You need to sign in or sign up before continuing.

Add an user comment to typo approving form

parent 2e1ad852
...@@ -64,7 +64,7 @@ export default class Typo extends Component { ...@@ -64,7 +64,7 @@ export default class Typo extends Component {
_highlightTypoInContext() { _highlightTypoInContext() {
const original = this._escapeHtml(this.typo.originalText); const original = this._escapeHtml(this.typo.originalText);
const corrected = this._escapeHtml(this.typo.correctedText); const corrected = this._escapeHtml(this.typo.correctedText);
const comment = this._escapeHtml(this.typo.comment);
const context = this._escapeHtml(this.typo.context); const context = this._escapeHtml(this.typo.context);
// Экранируем символы, которые мешают использовать регулярные выражения // Экранируем символы, которые мешают использовать регулярные выражения
...@@ -137,7 +137,7 @@ export default class Typo extends Component { ...@@ -137,7 +137,7 @@ export default class Typo extends Component {
</div> </div>
</CardBody> </CardBody>
<CardFooter> <CardFooter>
<p>Тут должен отображаться комментарий</p> <p>Комментарий: "{typo.comment}"</p>
Добавлена <small>{typo.date}</small> Добавлена <small>{typo.date}</small>
</CardFooter> </CardFooter>
</Card> </Card>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment