Skip to content

Commit

Permalink
[native] Enable NUX
Browse files Browse the repository at this point in the history
Summary:
Turn on NUX for everyone.

https://linear.app/comm/issue/ENG-9111/remove-the-flag-once-we-are-ready-to-launch-nux

Test Plan: Delete the app, create a new account on iOS simulator, and check if the NUX was shown.

Reviewers: kamil, will

Reviewed By: kamil

Subscribers: ashoat

Differential Revision: https://phab.comm.dev/D13422
  • Loading branch information
palys-swm committed Sep 24, 2024
1 parent 381e035 commit b162ed8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions native/components/nux-handler.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,15 @@ import { isLoggedIn } from 'lib/selectors/user-selectors.js';
import { NUXTipsContext } from './nux-tips-context.react.js';
import { useSelector } from '../redux/redux-utils.js';
import { useOnFirstLaunchEffect } from '../utils/hooks.js';
import { useStaffCanSee } from '../utils/staff-utils.js';

function NUXHandler(): React.Node {
const nuxTipsContext = React.useContext(NUXTipsContext);
invariant(nuxTipsContext, 'nuxTipsContext should be defined');
const { tipsProps } = nuxTipsContext;
const showTipsFlag = useStaffCanSee();

const loggedIn = useSelector(isLoggedIn);

if (!tipsProps || !loggedIn || !showTipsFlag) {
if (!tipsProps || !loggedIn) {
return null;
}

Expand Down

0 comments on commit b162ed8

Please sign in to comment.