@selfcommunity/react-ui 1.0.2-alpha.0 → 1.0.2-alpha.1

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.
@@ -107,7 +107,7 @@ function UserSocialAssociation(inProps) {
107
107
  const providersToLink = providersEnabled === null || providersEnabled === void 0 ? void 0 : providersEnabled.filter((p) => { var _a, _b; return !((_a = _providers[p]) === null || _a === void 0 ? void 0 : _a.provider) && !((_b = _providers[p]) === null || _b === void 0 ? void 0 : _b.ext_id); });
108
108
  const providersLinked = Object.values(_providers).filter((p) => providersEnabled.includes(p.provider));
109
109
  const handleOnCreateAssociation = (p) => {
110
- onCreateAssociation && onCreateAssociation(p);
110
+ onCreateAssociation && onCreateAssociation(p === types_1.SCUserSocialAssociations.ENTRAID ? SocialShare_1.PROVIDER_ENTRAID_ALTERNATIVE_NAME : p);
111
111
  };
112
112
  const handleOnDeleteAssociation = (p) => {
113
113
  if (onDeleteAssociation) {
@@ -105,7 +105,7 @@ export default function UserSocialAssociation(inProps) {
105
105
  const providersToLink = providersEnabled === null || providersEnabled === void 0 ? void 0 : providersEnabled.filter((p) => { var _a, _b; return !((_a = _providers[p]) === null || _a === void 0 ? void 0 : _a.provider) && !((_b = _providers[p]) === null || _b === void 0 ? void 0 : _b.ext_id); });
106
106
  const providersLinked = Object.values(_providers).filter((p) => providersEnabled.includes(p.provider));
107
107
  const handleOnCreateAssociation = (p) => {
108
- onCreateAssociation && onCreateAssociation(p);
108
+ onCreateAssociation && onCreateAssociation(p === SCUserSocialAssociations.ENTRAID ? PROVIDER_ENTRAID_ALTERNATIVE_NAME : p);
109
109
  };
110
110
  const handleOnDeleteAssociation = (p) => {
111
111
  if (onDeleteAssociation) {