@b3dotfun/sdk 0.0.49-alpha.2 → 0.0.49-alpha.3
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.
|
@@ -7,7 +7,7 @@ const jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
7
7
|
const react_1 = require("react");
|
|
8
8
|
const FeatureFlagsContext = (0, react_1.createContext)(undefined);
|
|
9
9
|
const defaultFeatureFlags = {
|
|
10
|
-
showPoints:
|
|
10
|
+
showPoints: true,
|
|
11
11
|
};
|
|
12
12
|
function FeatureFlagsProvider({ children, featureFlags = defaultFeatureFlags }) {
|
|
13
13
|
return (0, jsx_runtime_1.jsx)(FeatureFlagsContext.Provider, { value: { featureFlags }, children: children });
|
|
@@ -3,7 +3,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
3
3
|
import { createContext, useContext } from "react";
|
|
4
4
|
const FeatureFlagsContext = createContext(undefined);
|
|
5
5
|
const defaultFeatureFlags = {
|
|
6
|
-
showPoints:
|
|
6
|
+
showPoints: true,
|
|
7
7
|
};
|
|
8
8
|
export function FeatureFlagsProvider({ children, featureFlags = defaultFeatureFlags }) {
|
|
9
9
|
return _jsx(FeatureFlagsContext.Provider, { value: { featureFlags }, children: children });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
-
import { createContext, useContext
|
|
3
|
+
import { ReactNode, createContext, useContext } from "react";
|
|
4
4
|
|
|
5
5
|
export interface FeatureFlags {
|
|
6
6
|
showPoints?: boolean;
|
|
@@ -18,7 +18,7 @@ interface FeatureFlagsProviderProps {
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
const defaultFeatureFlags: FeatureFlags = {
|
|
21
|
-
showPoints:
|
|
21
|
+
showPoints: true,
|
|
22
22
|
};
|
|
23
23
|
|
|
24
24
|
export function FeatureFlagsProvider({ children, featureFlags = defaultFeatureFlags }: FeatureFlagsProviderProps) {
|