Merge pull request #2350 from ecency/sa/separate-schedules-option

added separate schedules item in side menu
This commit is contained in:
Feruz M 2022-06-10 22:49:11 +03:00 committed by GitHub
commit 3c472a5a96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 0 deletions

View File

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

View File

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