forked from vergnet/application-amicale
Improved dashboard interaction
This commit is contained in:
parent
03c4a43e58
commit
e6835b0d6f
2 changed files with 3 additions and 2 deletions
|
@ -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"
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue