New source found from dndbeyond.com
This commit is contained in:
@@ -1,16 +1,14 @@
|
||||
import { createSelector } from "reselect";
|
||||
|
||||
import {
|
||||
featureFlagInfoSelectors,
|
||||
rulesEngineSelectors,
|
||||
} from "@dndbeyond/character-rules-engine/es";
|
||||
import { rulesEngineSelectors } from "@dndbeyond/character-rules-engine/es";
|
||||
|
||||
import { NavigationType } from "~/subApps/builder/constants";
|
||||
|
||||
import { getNavBuilderConfig } from "../config/navigation";
|
||||
import { BuilderAppState } from "../typings";
|
||||
|
||||
export const getCurrentPath = (state) => window.location.pathname;
|
||||
export const getCurrentPath = () => window.location.pathname;
|
||||
export const getCurrentSearchParams = () => window.location.search;
|
||||
|
||||
export const getBuilderMethod = (state: BuilderAppState) =>
|
||||
state.builder.method;
|
||||
@@ -32,10 +30,7 @@ export const getRoutePathing = createSelector(
|
||||
rulesEngineSelectors.getCharacterConfiguration,
|
||||
],
|
||||
(state, builderMethod, configuration) => {
|
||||
const navConfig = getNavBuilderConfig(
|
||||
builderMethod,
|
||||
featureFlagInfoSelectors.getFeatureFlagInfo(state)
|
||||
);
|
||||
const navConfig = getNavBuilderConfig(builderMethod);
|
||||
|
||||
let exclusionNavTypes: Array<any> = [];
|
||||
if (!configuration.showHelpText) {
|
||||
@@ -71,10 +66,7 @@ export const getAvailableRoutePathing = createSelector(
|
||||
rulesEngineSelectors.getCharacterConfiguration,
|
||||
],
|
||||
(state, builderMethod, configuration) => {
|
||||
const navConfig = getNavBuilderConfig(
|
||||
builderMethod,
|
||||
featureFlagInfoSelectors.getFeatureFlagInfo(state)
|
||||
);
|
||||
const navConfig = getNavBuilderConfig(builderMethod);
|
||||
|
||||
let exclusionNavTypes: Array<any> = [];
|
||||
if (!configuration.showHelpText) {
|
||||
@@ -108,10 +100,7 @@ export const getFirstAvailableSectionRoutes = createSelector(
|
||||
rulesEngineSelectors.getCharacterConfiguration,
|
||||
],
|
||||
(state, builderMethod, configuration) => {
|
||||
const navConfig = getNavBuilderConfig(
|
||||
builderMethod,
|
||||
featureFlagInfoSelectors.getFeatureFlagInfo(state)
|
||||
);
|
||||
const navConfig = getNavBuilderConfig(builderMethod);
|
||||
|
||||
let exclusionNavTypes: Array<any> = [];
|
||||
if (!configuration.showHelpText) {
|
||||
|
||||
Reference in New Issue
Block a user