mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-21 12:21:31 +03:00
Merge pull request #2350 from ecency/sa/separate-schedules-option
added separate schedules item in side menu
This commit is contained in:
commit
3c472a5a96
@ -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);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user