@pushwoosh/smart-components-kit 1.0.63 → 1.0.64
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.
|
@@ -2,8 +2,8 @@ import React from 'react';
|
|
|
2
2
|
import { useParams } from 'react-router-dom';
|
|
3
3
|
import { Link, Spinner } from '@pushwoosh/dumb-components';
|
|
4
4
|
import { Color, PlatformsIcons, PlatformsLabels, Tag } from '@pushwoosh/kit-constants';
|
|
5
|
-
import { Horizontal,
|
|
6
|
-
import { PlatformLogoIcon } from '@pushwoosh/kit-icons';
|
|
5
|
+
import { Horizontal, Vertical, useAsync } from '@pushwoosh/kit-helpers';
|
|
6
|
+
import { OpenIcon, PlatformLogoIcon } from '@pushwoosh/kit-icons';
|
|
7
7
|
import { Text } from '@pushwoosh/kit-typography';
|
|
8
8
|
import { LinkRow, ClickActionSection } from './styles';
|
|
9
9
|
import { useSPAContext } from '../../../context';
|
|
@@ -35,7 +35,14 @@ export const OpenActionsSummary = ({
|
|
|
35
35
|
rel: "noopener noreferrer",
|
|
36
36
|
target: "_blank",
|
|
37
37
|
href: url
|
|
38
|
-
},
|
|
38
|
+
}, React.createElement(Horizontal, {
|
|
39
|
+
"$alignItems": "center",
|
|
40
|
+
"$justifyContent": "start",
|
|
41
|
+
"$gap": 4
|
|
42
|
+
}, urlText ?? url, React.createElement(OpenIcon, {
|
|
43
|
+
view: "lined",
|
|
44
|
+
size: "small"
|
|
45
|
+
})))));
|
|
39
46
|
const renderPlatformDeepLink = (platformKey, url, label = 'deep link') => {
|
|
40
47
|
const isEnumKey = typeof platformKey === 'number';
|
|
41
48
|
const icon = isEnumKey ? PlatformsIcons[platformKey] : null;
|
|
@@ -43,9 +50,9 @@ export const OpenActionsSummary = ({
|
|
|
43
50
|
return React.createElement(ClickActionSection, {
|
|
44
51
|
key: platformKey
|
|
45
52
|
}, React.createElement(Horizontal, {
|
|
46
|
-
"$
|
|
53
|
+
"$alignItems": "start",
|
|
47
54
|
"$justifyContent": "start",
|
|
48
|
-
"$
|
|
55
|
+
"$gap": 8
|
|
49
56
|
}, icon && React.createElement(PlatformLogoIcon, {
|
|
50
57
|
size: "small",
|
|
51
58
|
type: icon,
|
package/package.json
CHANGED