* Added MarkdownImage component

* Fixed unit tests
Этот коммит содержится в:
Harrison Healey
2017-06-28 10:30:02 -04:00
коммит произвёл Christopher Speller
родитель 0f69920342
Коммит 2dea567dcf
4 изменённых файлов: 42 добавлений и 26 удалений

19
webapp/components/markdown_image.jsx Обычный файл
Просмотреть файл

@@ -0,0 +1,19 @@
// Copyright (c) 2017-present Mattermost, Inc. All Rights Reserved.
// See License.txt for license information.
import React, {PureComponent} from 'react';
import {postListScrollChange} from 'actions/global_actions.jsx';
export default class MarkdownImage extends PureComponent {
handleLoad = () => {
postListScrollChange();
}
render() {
const props = {...this.props};
props.onLoad = this.handleLoad;
return <img {...props}/>;
}
}