ba-js-common-header 0.0.62 → 0.0.63
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.
|
@@ -15903,9 +15903,6 @@ function PropertySelector(props) {
|
|
|
15903
15903
|
const {
|
|
15904
15904
|
handleHotelChange
|
|
15905
15905
|
} = props;
|
|
15906
|
-
const [
|
|
15907
|
-
subMenuItem
|
|
15908
|
-
] = useState("Select property");
|
|
15909
15906
|
const [displayName, setDisplayName] = useState("");
|
|
15910
15907
|
const userInfo = useSelector((state) => state.userInfo);
|
|
15911
15908
|
const {
|
|
@@ -15940,6 +15937,9 @@ function PropertySelector(props) {
|
|
|
15940
15937
|
clamp: true
|
|
15941
15938
|
})
|
|
15942
15939
|
});
|
|
15940
|
+
const {
|
|
15941
|
+
i18n
|
|
15942
|
+
} = useI18n();
|
|
15943
15943
|
const dispatch = useDispatch();
|
|
15944
15944
|
useEffect(() => {
|
|
15945
15945
|
(async () => {
|
|
@@ -15980,6 +15980,9 @@ function PropertySelector(props) {
|
|
|
15980
15980
|
setDisplayName(name);
|
|
15981
15981
|
}
|
|
15982
15982
|
}, [userInfo, selectedHotel]);
|
|
15983
|
+
const {
|
|
15984
|
+
label
|
|
15985
|
+
} = propertySelector || {};
|
|
15983
15986
|
const showHotelFinder = userInfo.group && hotelFinderHotels.length > 1;
|
|
15984
15987
|
return transitions((styles, item) => item && /* @__PURE__ */ jsx(animated.div, {
|
|
15985
15988
|
className: "col-12 col-lg me-lg-auto px-0 order-lg-3",
|
|
@@ -15994,7 +15997,7 @@ function PropertySelector(props) {
|
|
|
15994
15997
|
className: "col-lg-auto align-items-center",
|
|
15995
15998
|
onClick: () => {
|
|
15996
15999
|
if (showHotelFinder) {
|
|
15997
|
-
dispatch(addSubMenu(
|
|
16000
|
+
dispatch(addSubMenu(label));
|
|
15998
16001
|
}
|
|
15999
16002
|
},
|
|
16000
16003
|
children: /* @__PURE__ */ jsxs("div", {
|
|
@@ -16012,7 +16015,7 @@ function PropertySelector(props) {
|
|
|
16012
16015
|
className: "col",
|
|
16013
16016
|
children: [showHotelFinder && /* @__PURE__ */ jsx("small", {
|
|
16014
16017
|
className: "pt-2",
|
|
16015
|
-
children:
|
|
16018
|
+
children: i18n.translate(label).fetch()
|
|
16016
16019
|
}), /* @__PURE__ */ jsx("span", {
|
|
16017
16020
|
className: "d-block",
|
|
16018
16021
|
id: "hd-property-name",
|
|
@@ -16030,7 +16033,7 @@ function PropertySelector(props) {
|
|
|
16030
16033
|
defaultHotel,
|
|
16031
16034
|
selectedHotel,
|
|
16032
16035
|
handleHotelChange,
|
|
16033
|
-
subMenuItem
|
|
16036
|
+
subMenuItem: label
|
|
16034
16037
|
})]
|
|
16035
16038
|
})
|
|
16036
16039
|
})
|
|
@@ -16141,7 +16144,7 @@ function UserManager() {
|
|
|
16141
16144
|
className: "pt-2 d-lg-none",
|
|
16142
16145
|
children: label
|
|
16143
16146
|
}), /* @__PURE__ */ jsxs("span", {
|
|
16144
|
-
className: "ps-lg-3 pe-3 pb-2 d-block",
|
|
16147
|
+
className: "ps-lg-3 pe-3 pt-lg-2 pb-2 d-block",
|
|
16145
16148
|
children: [/* @__PURE__ */ jsx("span", {
|
|
16146
16149
|
className: "d-none d-lg-inline",
|
|
16147
16150
|
children: /* @__PURE__ */ jsx(commonThin.User, {
|