-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #719 from dmytroshch/feature/beta
(feature) Recurring, AccDist AOs and strategy editor are moved out from beta
- Loading branch information
Showing
10 changed files
with
60 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,8 @@ | ||
import _get from 'lodash/get' | ||
import _some from 'lodash/some' | ||
import { createSelector } from 'reselect' | ||
import { REDUCER_PATHS } from '../../config' | ||
|
||
const path = REDUCER_PATHS.UI | ||
|
||
export const getFeatureFlags = (state) => _get(state, `${path}.featureFlags`) | ||
|
||
export const getStrategiesFeatureFlags = createSelector( | ||
getFeatureFlags, | ||
(allFlags) => allFlags?.strategy_editor, | ||
) | ||
|
||
export const getIsStrategiesLiveExecVisible = createSelector( | ||
getStrategiesFeatureFlags, | ||
(strategiesFlags) => strategiesFlags?.live_execution, | ||
) | ||
|
||
export const getIsStrategiesTabVisible = createSelector( | ||
getStrategiesFeatureFlags, | ||
(strategiesFlags) => _some(strategiesFlags, (flag) => flag === true), | ||
) | ||
|
||
export const getIsRecurringAOVisible = createSelector( | ||
getFeatureFlags, | ||
(flags) => flags?.recurring_AOs, | ||
) | ||
|
||
export default getFeatureFlags |