@pushwoosh/smart-components-kit 1.0.3 → 1.0.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.
|
@@ -7,10 +7,11 @@ export function PlatformsConfigurationDrawer(props) {
|
|
|
7
7
|
const {
|
|
8
8
|
application,
|
|
9
9
|
isOpen,
|
|
10
|
-
onClose
|
|
10
|
+
onClose,
|
|
11
|
+
subpage
|
|
11
12
|
} = props;
|
|
12
|
-
const [isOpenMobilePage, setIsOpenMobilePage] = useState(
|
|
13
|
-
const [isOpenDesktopPage, setIsOpenDesktopPage] = useState(
|
|
13
|
+
const [isOpenMobilePage, setIsOpenMobilePage] = useState(subpage === 'mobile');
|
|
14
|
+
const [isOpenDesktopPage, setIsOpenDesktopPage] = useState(subpage === 'desktop');
|
|
14
15
|
const toggleMobilePage = () => setIsOpenMobilePage(prev => !prev);
|
|
15
16
|
const toggleDesktopPage = () => setIsOpenDesktopPage(prev => !prev);
|
|
16
17
|
const onCloseHandler = () => {
|
|
@@ -67,12 +67,6 @@ export function MobilePage(props) {
|
|
|
67
67
|
type: "android",
|
|
68
68
|
size: "medium"
|
|
69
69
|
})), React.createElement(H4, null, "Android")), React.createElement(Card, {
|
|
70
|
-
as: "a",
|
|
71
|
-
href: `/applications/${application === null || application === void 0 ? void 0 : application.code}/configure/xiaomi`
|
|
72
|
-
}, React.createElement(CardIcon, null, React.createElement(PlatformLogoIcon, {
|
|
73
|
-
type: "xiaomi",
|
|
74
|
-
size: "medium"
|
|
75
|
-
})), React.createElement(H4, null, "Xiaomi")), React.createElement(Card, {
|
|
76
70
|
as: "a",
|
|
77
71
|
href: `/applications/${application === null || application === void 0 ? void 0 : application.code}/configure/huawei`
|
|
78
72
|
}, React.createElement(CardIcon, null, React.createElement(PlatformLogoIcon, {
|
package/package.json
CHANGED