Skip to content

Commit

Permalink
Resolve comment: onCreateMenuItemSelected from sidebarscreen.
Browse files Browse the repository at this point in the history
  • Loading branch information
dharmik committed Apr 20, 2022
1 parent fb511db commit 375aad5
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/pages/home/sidebar/SidebarScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ class SidebarScreen extends Component {
constructor(props) {
super(props);

this.onCreateMenuItemSelected = this.onCreateMenuItemSelected.bind(this);
this.hideCreateMenu = this.hideCreateMenu.bind(this);
this.startTimer = this.startTimer.bind(this);
this.navigateToSettings = this.navigateToSettings.bind(this);
Expand All @@ -62,13 +61,6 @@ class SidebarScreen extends Component {
WelcomeAction.show({routes, hideCreateMenu: this.hideCreateMenu});
}

/**
* Method called when a Create Menu item is selected.
*/
onCreateMenuItemSelected() {
this.hideCreateMenu();
}

/**
* Method called when we click the floating action button
*/
Expand Down Expand Up @@ -132,7 +124,7 @@ class SidebarScreen extends Component {
onClose={this.hideCreateMenu}
isVisible={this.state.isCreateMenuActive}
anchorPosition={styles.createMenuPositionSidebar}
onItemSelected={this.onCreateMenuItemSelected}
onItemSelected={this.hideCreateMenu}
fromSidebarMediumScreen={!this.props.isSmallScreenWidth}
menuItems={[
{
Expand Down

0 comments on commit 375aad5

Please sign in to comment.