Add feature_helper to tidy up feature flag queries

This commit is contained in:
Luke "Jared" Bennett 2017-07-28 17:18:17 +01:00
parent 8d454b8e89
commit 46f44fab20
No known key found for this signature in database
GPG Key ID: 402ED51FB5D306C2
1 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,11 @@
import Cookies from 'js-cookie';
function isNewRepo() {
return Cookies.get('new_nav') === 'true';
}
const FeatureHelper = {
isNewRepo,
};
export default FeatureHelper;