Improved dashboard interaction

This commit is contained in:
Arnaud Vergnet 2020-04-21 19:40:40 +02:00
parent 03c4a43e58
commit e6835b0d6f
2 changed files with 3 additions and 2 deletions

View file

@ -235,6 +235,7 @@ function HomeStackComponent(initialRoute: string | null, defaultData: { [key: st
...modalTransition,
}}
/>
{createScreenCollapsibleStack("self-menu", PlanningStack, SelfMenuScreen, i18n.t('screens.menuSelf'), true, {...modalTransition})}
<HomeStack.Screen
name="login"

View file

@ -169,7 +169,7 @@ class HomeScreen extends React.Component<Props> {
};
onMenuClick = () => {
this.props.navigation.navigate('services', {screen: "index"});
this.props.navigation.navigate('self-menu');
};
/**
@ -248,7 +248,7 @@ class HomeScreen extends React.Component<Props> {
},
{
id: 'today_menu',
data: dashboardData == null ? 0 : dashboardData.today_menu,
data: dashboardData == null ? [] : dashboardData.today_menu,
icon: 'silverware-fork-knife',
color: this.colors.menuColor,
onPress: this.onMenuClick,