Add feature_helper to tidy up feature flag queries
This commit is contained in:
parent
8d454b8e89
commit
46f44fab20
|
@ -0,0 +1,11 @@
|
|||
import Cookies from 'js-cookie';
|
||||
|
||||
function isNewRepo() {
|
||||
return Cookies.get('new_nav') === 'true';
|
||||
}
|
||||
|
||||
const FeatureHelper = {
|
||||
isNewRepo,
|
||||
};
|
||||
|
||||
export default FeatureHelper;
|
Loading…
Reference in New Issue