@abihealth/goapp-react-native 1.36.0 → 1.36.2

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/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.36.2](https://github.com/abiglobalhealth/react-native-sdk/compare/goapp-react-native-v1.36.1...goapp-react-native-v1.36.2) (2025-07-01)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * add updateConsultation call after updating delivery address in DeliveryAddressScreen ([#218](https://github.com/abiglobalhealth/react-native-sdk/issues/218)) ([34ee77a](https://github.com/abiglobalhealth/react-native-sdk/commit/34ee77adfc06da2a778f0a3e1469ccdccaa3dc36))
9
+
10
+ ## [1.36.1](https://github.com/abiglobalhealth/react-native-sdk/compare/goapp-react-native-v1.36.0...goapp-react-native-v1.36.1) (2025-06-30)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * update physician label retrieval in JoinVideoCallScreen for improved accuracy ([#216](https://github.com/abiglobalhealth/react-native-sdk/issues/216)) ([901213c](https://github.com/abiglobalhealth/react-native-sdk/commit/901213cfb7b2830daa3063da77d90729fe3b7aa6))
16
+
3
17
  ## [1.36.0](https://github.com/abiglobalhealth/react-native-sdk/compare/goapp-react-native-v1.35.0...goapp-react-native-v1.36.0) (2025-06-27)
4
18
 
5
19
 
@@ -187,11 +187,11 @@ var DeliveryAddressScreen = function (_a) {
187
187
  var t = (0, useTranslation_1.useTranslation)().t;
188
188
  var theme = (0, useTheme_1.useTheme)();
189
189
  var styles = getStyles(theme);
190
- var consultation = (0, useConsultation_1.useConsultation)().consultation;
191
- var _b = (0, react_1.useState)(false), loading = _b[0], setLoading = _b[1];
192
- var _c = (0, react_1.useState)(false), error = _c[0], setError = _c[1];
190
+ var _b = (0, useConsultation_1.useConsultation)(), consultation = _b.consultation, updateConsultation = _b.updateConsultation;
191
+ var _c = (0, react_1.useState)(false), loading = _c[0], setLoading = _c[1];
192
+ var _d = (0, react_1.useState)(false), error = _d[0], setError = _d[1];
193
193
  var onSubmit = function (data) { return __awaiter(void 0, void 0, void 0, function () {
194
- var getDistrictLabel, e_1;
194
+ var getDistrictLabel, updatedConsultation, e_1;
195
195
  return __generator(this, function (_a) {
196
196
  switch (_a.label) {
197
197
  case 0:
@@ -209,7 +209,8 @@ var DeliveryAddressScreen = function (_a) {
209
209
  };
210
210
  return [4 /*yield*/, (0, video_1.updateDeliveryAddress)(consultation === null || consultation === void 0 ? void 0 : consultation.id, __assign(__assign({}, data), { country: t('country.hk'), district: getDistrictLabel(data.district) }))];
211
211
  case 1:
212
- _a.sent();
212
+ updatedConsultation = (_a.sent()).consultation;
213
+ updateConsultation(updatedConsultation);
213
214
  return [3 /*break*/, 3];
214
215
  case 2:
215
216
  e_1 = _a.sent();
@@ -46,7 +46,6 @@ var useCustomComponents_1 = require("../../common/hooks/useCustomComponents");
46
46
  var useTheme_1 = require("../../common/hooks/useTheme");
47
47
  var useTranslation_1 = require("../../common/hooks/useTranslation");
48
48
  var CloseIcon_1 = require("../../common/icons/CloseIcon");
49
- var professional_1 = require("../../common/utils/professional");
50
49
  var animation_1 = require("../animations/CallingAnimation/animation");
51
50
  var VideoConsultationIcon_1 = require("../icons/VideoConsultationIcon");
52
51
  var react_1 = __importStar(require("react"));
@@ -68,8 +67,8 @@ var JoinVideoCallScreen = function (_a) {
68
67
  return <VideoCallScreen_1.default onVideoCallLeft={onVideoCallLeft}/>;
69
68
  return (<ScreenWrapper_1.ScreenWrapper header={<Header_1.Header title={t('general.consultation.videoConsultation.title')} leftIcon={<VideoConsultationIcon_1.VideoConsultationIcon />} rightIcon={<CloseIcon_1.CloseIcon />}/>} containerStyle={[styles.container, customComponents === null || customComponents === void 0 ? void 0 : customComponents.containerStyle]}>
70
69
  <Text_1.Text variant="h2" center>
71
- {t('video.calling.physician_female', {
72
- name: (0, professional_1.getProfessionalLabel)(professional)
70
+ {t("video.calling.physician_".concat(professional.gender), {
71
+ name: professional.firstName
73
72
  })}
74
73
  </Text_1.Text>
75
74
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abihealth/goapp-react-native",
3
- "version": "1.36.0",
3
+ "version": "1.36.2",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org/"