@equinor/cpl-feature-flag-react 2.0.10 → 2.1.0
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.
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -193,7 +193,7 @@ function DevPanelPure({
|
|
|
193
193
|
return Object.keys(featureFlagConfig);
|
|
194
194
|
}, [featureFlagConfig]);
|
|
195
195
|
const currentEnvironment = useCurrentEnvironment();
|
|
196
|
-
if (!currentEnvironment ||
|
|
196
|
+
if (!currentEnvironment || !["dev", "local"].includes(currentEnvironment)) {
|
|
197
197
|
return null;
|
|
198
198
|
}
|
|
199
199
|
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_jsx_runtime3.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_eds_core_react2.EdsProvider, { density: "compact", children: [
|
package/dist/index.mjs
CHANGED
|
@@ -157,7 +157,7 @@ function DevPanelPure({
|
|
|
157
157
|
return Object.keys(featureFlagConfig);
|
|
158
158
|
}, [featureFlagConfig]);
|
|
159
159
|
const currentEnvironment = useCurrentEnvironment();
|
|
160
|
-
if (!currentEnvironment ||
|
|
160
|
+
if (!currentEnvironment || !["dev", "local"].includes(currentEnvironment)) {
|
|
161
161
|
return null;
|
|
162
162
|
}
|
|
163
163
|
return /* @__PURE__ */ jsx3(Fragment, { children: /* @__PURE__ */ jsxs(EdsProvider, { density: "compact", children: [
|