@calimero-network/mero-react 11.7.0 → 11.8.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.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -5
- package/dist/index.d.ts +8 -5
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2885,7 +2885,7 @@ function useInviteAccept({ returnTo, noun, onJoined, onError }) {
|
|
|
2885
2885
|
done: (outcome) => {
|
|
2886
2886
|
const org = "direct" in outcome ? outcome.direct : orgOf(outcome.consent);
|
|
2887
2887
|
if (!org) return noOrg(noun);
|
|
2888
|
-
onJoined({ org });
|
|
2888
|
+
onJoined({ org, alreadyMember: false });
|
|
2889
2889
|
return void 0;
|
|
2890
2890
|
}
|
|
2891
2891
|
});
|
|
@@ -2898,7 +2898,7 @@ function useAcceptResume({ noun, onJoined }) {
|
|
|
2898
2898
|
onApproved: (_intent, result) => {
|
|
2899
2899
|
const org = orgOf(result);
|
|
2900
2900
|
if (!org) return noOrg(noun);
|
|
2901
|
-
onJoined({ org });
|
|
2901
|
+
onJoined({ org, alreadyMember: false });
|
|
2902
2902
|
return void 0;
|
|
2903
2903
|
}
|
|
2904
2904
|
});
|
|
@@ -3125,7 +3125,7 @@ function Dialog3({ open, onClose, token, org, appName, labels, onJoined, onError
|
|
|
3125
3125
|
body = /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
3126
3126
|
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: "mero-cw-title", children: `You're already in ${name}` }),
|
|
3127
3127
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "mero-cw-sub", children: `The invitation was for ${name}, and you are already a member, so there is nothing to accept. It is still unused for the person it was meant for.` }),
|
|
3128
|
-
/* @__PURE__ */ jsxRuntime.jsx("button", { type: "button", className: "mero-cw-btn mero-cw-btn--primary mero-cw-btn--full", onClick: () => onJoined({ org }), children: "Continue" })
|
|
3128
|
+
/* @__PURE__ */ jsxRuntime.jsx("button", { type: "button", className: "mero-cw-btn mero-cw-btn--primary mero-cw-btn--full", onClick: () => onJoined({ org, alreadyMember: true }), children: "Continue" })
|
|
3129
3129
|
] });
|
|
3130
3130
|
} else {
|
|
3131
3131
|
body = /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|