@thepalaceproject/circulation-admin 1.22.0-post.5 → 1.22.0-post.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -23,7 +23,7 @@ const defaultReduxStore = store;
|
|
|
23
23
|
|
|
24
24
|
// The `csrfToken` context provider prop is required, so we provide
|
|
25
25
|
// a default value here, so it can be easily merged with other props.
|
|
26
|
-
const
|
|
26
|
+
const requiredContextProviderProps: ContextProviderProps = {
|
|
27
27
|
csrfToken: "",
|
|
28
28
|
featureFlags: defaultFeatureFlags,
|
|
29
29
|
};
|
|
@@ -49,7 +49,7 @@ export const componentWithProviders = ({
|
|
|
49
49
|
queryClient = new QueryClient(),
|
|
50
50
|
}: TestProviderWrapperOptions = {}): React.FunctionComponent => {
|
|
51
51
|
const effectiveContextProviderProps = {
|
|
52
|
-
...
|
|
52
|
+
...requiredContextProviderProps,
|
|
53
53
|
...contextProviderProps,
|
|
54
54
|
...reduxProviderProps.store, // Context and Redux Provider stores must match.
|
|
55
55
|
};
|