From a21fec36c452fb73b2f2d432c4b33ab82678b5c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Furkan=20K=C4=B1l=C4=B1c=CC=A7?= Date: Sun, 27 Dec 2020 21:45:30 +0300 Subject: [PATCH] Remove unused codes --- src/components/sideMenu/container/sideMenuContainer.js | 6 ------ src/components/sideMenu/view/sideMenuView.js | 10 ---------- 2 files changed, 16 deletions(-) diff --git a/src/components/sideMenu/container/sideMenuContainer.js b/src/components/sideMenu/container/sideMenuContainer.js index bb1cce6c7..a65047b29 100644 --- a/src/components/sideMenu/container/sideMenuContainer.js +++ b/src/components/sideMenu/container/sideMenuContainer.js @@ -41,12 +41,6 @@ class SideMenuContainer extends Component { isCurrentAccount: element.username === currentAccount.name, }); }); - // accounts.push({ - // name: 'Add Account', - // route: ROUTES.SCREENS.LOGIN, - // icon: 'user-follow', - // id: 'add_account', - // }); this.setState({ accounts }); }; diff --git a/src/components/sideMenu/view/sideMenuView.js b/src/components/sideMenu/view/sideMenuView.js index 54b8e8332..3c4f697aa 100644 --- a/src/components/sideMenu/view/sideMenuView.js +++ b/src/components/sideMenu/view/sideMenuView.js @@ -62,16 +62,6 @@ const SideMenuView = ({ }, []); // Component Functions - - const _handleOnPressAddAccountIcon = () => { - // if (!isAddAccountIconActive) { - // setMenuItems(accounts); - // } else { - // setMenuItems(isLoggedIn ? MENU.AUTH_MENU_ITEMS : MENU.NO_AUTH_MENU_ITEMS); - // } - // setIsAddAccountIconActive(!isAddAccountIconActive); - }; - const _handleOnMenuItemPress = (item) => { if (item.id === 'logout') { ActionSheetRef.current.show();