@queuezero/react 0.1.3 → 0.1.5
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 +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -322,8 +322,8 @@ function ReferralShare({
|
|
|
322
322
|
}) {
|
|
323
323
|
const { getReferralLink, getReferralCode, isJoined, config } = useWaitlistContext();
|
|
324
324
|
const [copied, setCopied] = (0, import_react3.useState)(false);
|
|
325
|
-
const referralEnabled = config?.features?.
|
|
326
|
-
const showSocial = showSocialButtons ?? config?.features?.
|
|
325
|
+
const referralEnabled = config?.features?.referralEnabled ?? true;
|
|
326
|
+
const showSocial = showSocialButtons ?? config?.features?.socialShareButtons ?? false;
|
|
327
327
|
if (!referralEnabled) return null;
|
|
328
328
|
const link = getReferralLink();
|
|
329
329
|
const code = getReferralCode();
|
package/dist/index.mjs
CHANGED
|
@@ -288,8 +288,8 @@ function ReferralShare({
|
|
|
288
288
|
}) {
|
|
289
289
|
const { getReferralLink, getReferralCode, isJoined, config } = useWaitlistContext();
|
|
290
290
|
const [copied, setCopied] = useState3(false);
|
|
291
|
-
const referralEnabled = config?.features?.
|
|
292
|
-
const showSocial = showSocialButtons ?? config?.features?.
|
|
291
|
+
const referralEnabled = config?.features?.referralEnabled ?? true;
|
|
292
|
+
const showSocial = showSocialButtons ?? config?.features?.socialShareButtons ?? false;
|
|
293
293
|
if (!referralEnabled) return null;
|
|
294
294
|
const link = getReferralLink();
|
|
295
295
|
const code = getReferralCode();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@queuezero/react",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"description": "React components and hooks for QueueZero viral waitlists",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"react": ">=17.0.0"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"queuezero": "^0.1.
|
|
38
|
+
"queuezero": "^0.1.4"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@types/node": "^22.13.11",
|