diff --git a/src/navigation/components/DrawerContent.js b/src/navigation/components/DrawerContent.js index 36fee3a85..09a5299d3 100644 --- a/src/navigation/components/DrawerContent.js +++ b/src/navigation/components/DrawerContent.js @@ -171,7 +171,7 @@ class DrawerContent extends Component { label={this.props.t('TASKS')} onPress={() => this.props.navigation.navigate('CourierNav')}/> )} - {(isAuthenticated && user.hasRole('ROLE_ADMIN')) && ( + {(isAuthenticated && user.hasRole('ROLE_DISPATCHER')) && ( this.props.navigation.navigate('DispatchNav')}/> diff --git a/src/navigation/navigators/DrawerNavigator.js b/src/navigation/navigators/DrawerNavigator.js index 6ea2d54b0..ce35b1960 100644 --- a/src/navigation/navigators/DrawerNavigator.js +++ b/src/navigation/navigators/DrawerNavigator.js @@ -148,7 +148,7 @@ const DrawerNav = ({ initialRouteName, user, isAuthenticated, showRestaurantsDra name="StoreNav" component={ StoreNavigator } /> )} - { (isAuthenticated && user.hasRole('ROLE_ADMIN')) && ( + { (isAuthenticated && user.hasRole('ROLE_DISPATCHER')) && ( diff --git a/src/redux/App/selectors.js b/src/redux/App/selectors.js index 061c1a3ce..b7525cd18 100644 --- a/src/redux/App/selectors.js +++ b/src/redux/App/selectors.js @@ -73,7 +73,7 @@ export const selectInitialRouteName = createSelector( return 'CourierNav' } - if (user.hasRole('ROLE_ADMIN')) { + if (user.hasRole('ROLE_DISPATCHER')) { return 'DispatchNav' } diff --git a/src/utils/IMG_2235.jpg b/src/utils/IMG_2235.jpg new file mode 100644 index 000000000..aabbb5bd6 Binary files /dev/null and b/src/utils/IMG_2235.jpg differ