Add feature_helper to tidy up feature flag queries
This commit is contained in:
parent
8d454b8e89
commit
46f44fab20
1 changed files with 11 additions and 0 deletions
11
app/assets/javascripts/helpers/feature_helper.js
Normal file
11
app/assets/javascripts/helpers/feature_helper.js
Normal file
|
@ -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 a new issue