added separate schedules item in side menu

This commit is contained in:
Sadaqat Ali 2022-06-10 21:04:40 +05:00
parent c772cb1de4
commit cd2a95f158
2 changed files with 17 additions and 0 deletions

View File

@ -22,6 +22,7 @@ import { TextWithIcon } from '../../basicUIElements';
// Constants
import MENU from '../../../constants/sideMenuItems';
import ROUTES from '../../../constants/routeNames';
//Utils
import { getVotingPower } from '../../../utils/manaBar';
@ -89,6 +90,16 @@ const SideMenuView = ({
return;
}
if (item.id === 'schedules') {
navigateToRoute({
routeName: ROUTES.SCREENS.DRAFTS,
params: {
showSchedules: true,
},
});
return;
}
navigateToRoute(item.route);
};

View File

@ -19,6 +19,12 @@ const authMenuItems = [
icon: 'docs',
id: 'drafts',
},
{
name: 'Schedules',
route: ROUTES.SCREENS.DRAFTS,
icon: 'clock',
id: 'schedules',
},
{
name: 'Communities',
route: ROUTES.SCREENS.COMMUNITIES,