@bigbinary/neeto-integrations-frontend 2.10.3 → 2.10.4

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 CHANGED
@@ -37,7 +37,7 @@ var Manage$1 = withT(function (_ref) {
37
37
  _ref$isDisconnecting = _ref.isDisconnecting,
38
38
  isDisconnecting = _ref$isDisconnecting === void 0 ? false : _ref$isDisconnecting,
39
39
  _ref$onDisconnect = _ref.onDisconnect,
40
- onDisconnect = _ref$onDisconnect === void 0 ? noop : _ref$onDisconnect,
40
+ onDisconnect = _ref$onDisconnect === void 0 ? undefined : _ref$onDisconnect,
41
41
  _ref$onClose = _ref.onClose,
42
42
  onClose = _ref$onClose === void 0 ? noop : _ref$onClose,
43
43
  _ref$Icon = _ref.Icon,
@@ -88,27 +88,28 @@ var Manage$1 = withT(function (_ref) {
88
88
  style: "body2",
89
89
  weight: "normal"
90
90
  }, /*#__PURE__*/React__default.createElement(Trans, {
91
- i18nKey: "settings.integrations.common.helpDocUrl",
91
+ i18nKey: "neetoIntegrations.common.helpDocUrl",
92
92
  components: {
93
93
  helpLink: /*#__PURE__*/React__default.createElement(Button, {
94
94
  href: helpDocUrl,
95
- style: "link"
95
+ style: "link",
96
+ target: "_blank"
96
97
  })
97
98
  },
98
99
  values: {
99
- integration: integrationName !== null && integrationName !== void 0 ? integrationName : humanize(integration)
100
+ integration: integrationName || humanize(integration)
100
101
  }
101
102
  }))), isConnected ? /*#__PURE__*/React__default.createElement("div", {
102
103
  className: "space-x-2"
103
104
  }, managePath && /*#__PURE__*/React__default.createElement(Button, {
104
105
  to: managePath,
105
- label: t("settings.integrations.common.manageIntegration", {
106
- integration: integrationName !== null && integrationName !== void 0 ? integrationName : humanize(integration)
106
+ label: t("neetoIntegrations.common.manageIntegration", {
107
+ integration: integrationName || humanize(integration)
107
108
  })
108
109
  }), onDisconnect && /*#__PURE__*/React__default.createElement(Button, {
109
- style: "danger",
110
- label: t("settings.integrations.common.disconnectIntegration", {
111
- integration: integrationName !== null && integrationName !== void 0 ? integrationName : humanize(integration)
110
+ style: "secondary",
111
+ label: t("neetoIntegrations.common.disconnectIntegration", {
112
+ integration: integrationName || humanize(integration)
112
113
  }),
113
114
  onClick: function onClick() {
114
115
  return setIsDisconnectAlertOpen(true);
@@ -118,8 +119,8 @@ var Manage$1 = withT(function (_ref) {
118
119
  href: connectUrl,
119
120
  to: connectPath,
120
121
  tooltipProps: connectTooltipProps,
121
- label: t("settings.integrations.common.connectIntegration", {
122
- integration: integrationName !== null && integrationName !== void 0 ? integrationName : humanize(integration)
122
+ label: t("neetoIntegrations.common.connectIntegration", {
123
+ integration: integrationName || humanize(integration)
123
124
  })
124
125
  }))), /*#__PURE__*/React__default.createElement(DisconnectAlert, {
125
126
  isDisconnecting: isDisconnecting,
@@ -127,7 +128,7 @@ var Manage$1 = withT(function (_ref) {
127
128
  onDisconnect: onDisconnect,
128
129
  isOpen: isDisconnectAlertOpen,
129
130
  title: t("settings.integrations.".concat(integration, ".disconnect.title")),
130
- message: disconnectMessage !== null && disconnectMessage !== void 0 ? disconnectMessage : t("settings.integrations.".concat(integration, ".disconnect.message"))
131
+ message: disconnectMessage || t("settings.integrations.".concat(integration, ".disconnect.message"))
131
132
  }));
132
133
  });
133
134