Commit 0b85a318 authored by Soldatoff's avatar Soldatoff

Добавил отображения ссылки вместо текста

parent d21722aa
......@@ -98,15 +98,18 @@ export default class Typo extends Component {
this.state.textHighlighted = true;
}
var stringlink = typo.link.slice("https://".length,80+"https://".length);
if (stringlink.length < (typo.link.length - "https://".length)) {
stringlink += '...';
}
return (
<Card id={`typo-${typo.id}`} className={className}>
<CardHeader>
Опечатка #{typo.id}
<span id="typo-id">
<a href={typo.link} target="_blank">Ссылка на текст</a>
<a href={typo.link} target="_blank">{stringlink}</a>
</span>
</CardHeader>
<CardBody>
<CardTitle>
<del>{typo.originalText}</del> ->
......
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