removed url on code preview (#3435)
Этот коммит содержится в:
коммит произвёл
Corey Hulen
родитель
74f86da822
Коммит
69ea1d7193
@@ -106,10 +106,12 @@ export default class CodePreview extends React.Component {
|
|||||||
|
|
||||||
const highlighted = SyntaxHighlighting.highlight(this.state.lang, this.state.code);
|
const highlighted = SyntaxHighlighting.highlight(this.state.lang, this.state.code);
|
||||||
|
|
||||||
|
const fileName = this.props.filename.substring(this.props.filename.lastIndexOf('/') + 1, this.props.filename.length);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className='post-code'>
|
<div className='post-code'>
|
||||||
<span className='post-code__language'>
|
<span className='post-code__language'>
|
||||||
{`${this.props.filename} - ${language}`}
|
{`${fileName} - ${language}`}
|
||||||
</span>
|
</span>
|
||||||
<code className='hljs'>
|
<code className='hljs'>
|
||||||
<table>
|
<table>
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user