diff --git a/js/views/conversation_view.js b/js/views/conversation_view.js index 26214a7f5..90f47abac 100644 --- a/js/views/conversation_view.js +++ b/js/views/conversation_view.js @@ -638,7 +638,6 @@ // events up to its parent elements in the DOM. this.closeMenu(); - // Next: // pull latest media // need a way for react component to request further data diff --git a/ts/components/conversation/media-gallery/MediaGallery.tsx b/ts/components/conversation/media-gallery/MediaGallery.tsx index f4a267d71..0d24021dd 100644 --- a/ts/components/conversation/media-gallery/MediaGallery.tsx +++ b/ts/components/conversation/media-gallery/MediaGallery.tsx @@ -82,10 +82,6 @@ export class MediaGallery extends React.Component { selectedTab: 'media', }; - private handleTabSelect = (event: TabSelectEvent): void => { - this.setState({selectedTab: event.type}); - } - public render() { const { selectedTab } = this.state; @@ -112,6 +108,10 @@ export class MediaGallery extends React.Component { ); } + private handleTabSelect = (event: TabSelectEvent): void => { + this.setState({selectedTab: event.type}); + } + private renderSections() { const { i18n, media, documents } = this.props; const { selectedTab } = this.state;