Move private
method below public
ones
This commit is contained in:
@@ -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
|
||||
|
@@ -82,10 +82,6 @@ export class MediaGallery extends React.Component<Props, State> {
|
||||
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<Props, State> {
|
||||
);
|
||||
}
|
||||
|
||||
private handleTabSelect = (event: TabSelectEvent): void => {
|
||||
this.setState({selectedTab: event.type});
|
||||
}
|
||||
|
||||
private renderSections() {
|
||||
const { i18n, media, documents } = this.props;
|
||||
const { selectedTab } = this.state;
|
||||
|
Reference in New Issue
Block a user