V2Wizard: Hide first boot from review step
This commit is contained in:
parent
824f30d4c5
commit
038f6f5ff5
3 changed files with 28 additions and 14 deletions
11
src/Utilities/useBetaFlag.ts
Normal file
11
src/Utilities/useBetaFlag.ts
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
import { useFlag } from '@unleash/proxy-client-react';
|
||||
|
||||
import { useGetEnvironment } from './useGetEnvironment';
|
||||
|
||||
const useBetaFlag = (flag: string): boolean => {
|
||||
const getFlag = useFlag(flag);
|
||||
const { isBeta } = useGetEnvironment();
|
||||
return isBeta() && getFlag;
|
||||
};
|
||||
|
||||
export default useBetaFlag;
|
||||
Loading…
Add table
Add a link
Reference in a new issue