mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-18 19:01:38 +03:00
added separate schedules item in side menu
This commit is contained in:
parent
c772cb1de4
commit
cd2a95f158
@ -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);
|
||||
};
|
||||
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user