ublo-lib 1.25.13 → 1.25.14
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.
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
+
import Link from "ublo/link";
|
|
2
3
|
import { useUbloContext } from "ublo/with-ublo";
|
|
3
4
|
import classNames from "classnames";
|
|
4
5
|
import Loader from "dt-design-system/es/loader";
|
|
5
|
-
import
|
|
6
|
+
import Button from "dt-design-system/es/button";
|
|
7
|
+
import * as Icons from "dt-design-system/es/icons";
|
|
6
8
|
import TelesiegeIcon from "./icons/lifts/telesiege";
|
|
7
9
|
import SlopesIcon from "./icons/slopes";
|
|
10
|
+
import T, { t } from "./i18n/translations";
|
|
8
11
|
import css from "./domain.module.css";
|
|
9
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
13
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -12,8 +15,12 @@ const Domain = React.forwardRef(({
|
|
|
12
15
|
domain
|
|
13
16
|
}, ref) => {
|
|
14
17
|
const {
|
|
15
|
-
lang
|
|
18
|
+
lang,
|
|
19
|
+
config
|
|
16
20
|
} = useUbloContext();
|
|
21
|
+
const {
|
|
22
|
+
slopeMapPath
|
|
23
|
+
} = config;
|
|
17
24
|
if (domain === undefined) {
|
|
18
25
|
return _jsx("div", {
|
|
19
26
|
ref: ref,
|
|
@@ -98,6 +105,11 @@ const Domain = React.forwardRef(({
|
|
|
98
105
|
})]
|
|
99
106
|
}, key);
|
|
100
107
|
})
|
|
108
|
+
}), _jsxs(Button, {
|
|
109
|
+
tag: Link,
|
|
110
|
+
className: css.mapButton,
|
|
111
|
+
href: slopeMapPath,
|
|
112
|
+
children: [_jsx(Icons.Map, {}), t(lang, "domain.map")]
|
|
101
113
|
})]
|
|
102
114
|
})
|
|
103
115
|
});
|