Skip to content

Commit

Permalink
nav: Fix ordering slightly.
Browse files Browse the repository at this point in the history
I'd stuck this comment block just below one of the navigate-somewhere
actions and above all the others, which could be a bit confusing.
Move it up so it doesn't separate them.
  • Loading branch information
gnprice committed Aug 10, 2019
1 parent 7c8f121 commit 8dcc768
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/nav/navActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@ export const navigateBack = () => (dispatch: Dispatch, getState: GetState): Navi
// $FlowFixMe
dispatch(NavigationActions.pop({ n: getSameRoutesCount(getState()) }));

/** Only call this via `doNarrow`. See there for details. */
export const navigateToChat = (narrow: Narrow): NavigateAction =>
NavigationActions.navigate({ routeName: 'chat', params: { narrow } });

// Other stack routes reached through `navReducer`:
// NavigationActions.navigate({ routeName: 'loading' });
// NavigationActions.navigate({ routeName: 'welcome' });
// NavigationActions.navigate({ routeName: 'account' });
// NavigationActions.navigate({ routeName: 'main' });

/** Only call this via `doNarrow`. See there for details. */
export const navigateToChat = (narrow: Narrow): NavigateAction =>
NavigationActions.navigate({ routeName: 'chat', params: { narrow } });

export const navigateToUsersScreen = (): NavigateAction =>
NavigationActions.navigate({ routeName: 'users' });

Expand Down

0 comments on commit 8dcc768

Please sign in to comment.