V2Wizard: Hide first boot from review step

This commit is contained in:
Amir 2024-05-02 18:09:15 +03:00 committed by Klara Simickova
parent 824f30d4c5
commit 038f6f5ff5
3 changed files with 28 additions and 14 deletions

View 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;