mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
20 lines
484 B
JavaScript
20 lines
484 B
JavaScript
// 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}/>;
|
|
}
|
|
}
|