Skip to content

Commit

Permalink
[lib] Enable NUX for staff
Browse files Browse the repository at this point in the history
Summary:
Turn the flag on for staff and dev.

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

Test Plan: Open the app and check if NUX is performed.

Reviewers: kamil, inka

Reviewed By: kamil

Subscribers: ashoat

Differential Revision: https://phab.comm.dev/D13337
  • Loading branch information
palys-swm committed Sep 16, 2024
1 parent 23686a4 commit e27ce7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions native/components/nux-handler.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ 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';

const showTipsFlag = false;
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);

Expand Down

0 comments on commit e27ce7f

Please sign in to comment.