Skip to content

Commit

Permalink
mobile: add comment about top level wer
Browse files Browse the repository at this point in the history
  • Loading branch information
latter-bolden committed Mar 11, 2024
1 parent 2304178 commit fc67451
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions apps/tlon-mobile/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ type Props = {

const OnboardingStack = createNativeStackNavigator<OnboardingStackParamList>();

const App = ({ wer: initialWer }: Props) => {
// on Android if a notification click causes the app to open, the corresponding notification
// path is passed in here as "wer"
const App = ({ wer }: Props) => {
useDevTools({ enabled: DEV_LOCAL, localCode: DEV_LOCAL_CODE });
const isDarkMode = useIsDarkMode();
const tailwind = useTailwind();
Expand Down Expand Up @@ -85,7 +87,7 @@ const App = ({ wer: initialWer }: Props) => {
</View>
) : isAuthenticated ? (
<AuthenticatedApp
initialNotificationPath={getPathFromWer(initialWer ?? '')}
initialNotificationPath={getPathFromWer(wer ?? '')}
/>
) : (
<OnboardingStack.Navigator
Expand Down

0 comments on commit fc67451

Please sign in to comment.