@pioneer-platform/pioneer-react 0.2.42 → 0.2.43
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/dist/index.d.ts +1 -6
- package/dist/index.js +16 -14
- package/dist/{index_2ae7b728.js → index_00dd884e.js} +5 -6
- package/dist/{index_d62adee3.js → index_089e7234.js} +1 -1
- package/dist/{index_6fc14522.js → index_1a6a5598.js} +5 -6
- package/dist/{index_5cbed275.js → index_1afbfab1.js} +246 -4473
- package/dist/{index_f59a43d2.js → index_2149ed8d.js} +8 -8
- package/dist/{index_7f071019.js → index_25e511bb.js} +15 -15
- package/dist/{index_b2be5e4e.js → index_28e5444b.js} +3 -4
- package/dist/{index_f575e7b4.js → index_31d055bf.js} +8 -9
- package/dist/{index_ebeabe97.js → index_3433fe56.js} +3 -4
- package/dist/{index_318d1d68.js → index_3ed7e242.js} +28 -28
- package/dist/{index_0d526d38.js → index_3fea9d52.js} +19 -19
- package/dist/{index_47b407db.js → index_40cbc1cb.js} +4 -5
- package/dist/{index_7d621758.js → index_40f2115a.js} +3 -4
- package/dist/{index_ed259edc.js → index_47217799.js} +5 -6
- package/dist/{index_5d556ec6.js → index_51bbd44a.js} +3 -4
- package/dist/{index_8e0864da.js → index_53605da3.js} +2 -2
- package/dist/{index_45b009da.js → index_5c12821e.js} +10 -11
- package/dist/{index_9fef85a2.js → index_5dc59e18.js} +3 -4
- package/dist/{index_ac8af4f0.js → index_61702928.js} +3 -4
- package/dist/{index_4b36612f.js → index_64ff18e7.js} +1 -1
- package/dist/{index_13b1e6a1.js → index_65017d87.js} +1 -1
- package/dist/{index_b752bc5a.js → index_6becad0b.js} +13 -13
- package/dist/{index_89463ea0.js → index_740490f1.js} +4 -5
- package/dist/{index_de955e45.js → index_75f700d8.js} +4 -5
- package/dist/{index_e525ec6b.js → index_7640e861.js} +8 -453
- package/dist/{index_d85153be.js → index_7c11b3c7.js} +3 -3
- package/dist/{index_61bfdb70.js → index_7c574e7d.js} +8 -9
- package/dist/{index_97f1ff39.js → index_7ddfebf7.js} +14 -14
- package/dist/{index_e47e2842.js → index_81dd7d0f.js} +7 -8
- package/dist/{index_a005a882.js → index_87afedd4.js} +8 -8
- package/dist/{index_0bbcbffb.js → index_87d14dd6.js} +6 -7
- package/dist/{index_aa947e34.js → index_9346dd3d.js} +7 -7
- package/dist/{index_70cc14bd.js → index_96d5aad1.js} +1223 -40
- package/dist/{index_ff288a7a.js → index_97081f9b.js} +7 -8
- package/dist/{index_4c07ec7c.js → index_9c378228.js} +11 -13
- package/dist/{index_54e4e367.js → index_a96dcbb2.js} +13 -13
- package/dist/{index_265bb459.js → index_a9d0b958.js} +29 -52
- package/dist/{index_d869d4f8.js → index_abaa7487.js} +6 -7
- package/dist/{index_d90e262e.js → index_b1b7d385.js} +13 -13
- package/dist/index_b4b501fc.js +449 -0
- package/dist/index_b62d8ff4.js +30 -0
- package/dist/{index_81d780b7.js → index_b6e5a809.js} +1 -1
- package/dist/{index_6424cb67.js → index_bd7bbccf.js} +2 -4
- package/dist/{index_381aee34.js → index_c2bc068c.js} +1 -1
- package/dist/{index_7861fcf0.js → index_c587fd1b.js} +3 -4
- package/dist/{index_239b8e07.js → index_c8c2dada.js} +1 -1
- package/dist/{index_bfa7b443.js → index_d26b5754.js} +7 -8
- package/dist/{index_015b6eba.js → index_d77fc157.js} +6154 -32027
- package/dist/{index_e4776b9a.js → index_db264e60.js} +13 -13
- package/dist/{index_2143ad7f.js → index_f044b02a.js} +1 -1
- package/dist/{index_1d49c612.js → index_fad80d95.js} +4 -5
- package/dist/lib/components/pioneer/Pioneer/Balances.js +4 -4
- package/dist/lib/components/pioneer/Pioneer/Paths.js +4 -4
- package/dist/lib/components/pioneer/Pioneer/Pubkeys.js +4 -4
- package/dist/lib/components/pioneer/Pioneer/Send.js +1 -1
- package/dist/lib/components/pioneer/Pioneer/Wallets.js +1 -1
- package/dist/lib/components/pioneer/index.js +7 -7
- package/dist/lib/pages/home/index.js +2 -9
- package/package.json +1 -1
- package/src/index.tsx +19 -19
- package/src/lib/components/pioneer/Pioneer/Balances.tsx +4 -4
- package/src/lib/components/pioneer/Pioneer/Paths.tsx +4 -4
- package/src/lib/components/pioneer/Pioneer/Pubkeys.tsx +4 -4
- package/src/lib/components/pioneer/Pioneer/Send.tsx +1 -1
- package/src/lib/components/pioneer/Pioneer/Wallets.tsx +2 -2
- package/src/lib/components/pioneer/index.tsx +6 -41
- package/src/lib/pages/home/index.tsx +5 -5
- package/dist/index_bbcb3c14.js +0 -31
- package/dist/lib/components/AssetSelect/index.d.ts +0 -4
- package/dist/lib/components/AssetSelect/index.js +0 -72
- package/dist/lib/components/BlockchainSelect/index.d.ts +0 -4
- package/dist/lib/components/BlockchainSelect/index.js +0 -88
- package/dist/lib/components/MiddleEllipsis/index.d.ts +0 -6
- package/dist/lib/components/MiddleEllipsis/index.js +0 -12
- package/dist/lib/components/Onboarding/index.d.ts +0 -6
- package/dist/lib/components/Onboarding/index.js +0 -113
- package/dist/lib/components/WalletSelect/index.d.ts +0 -4
- package/dist/lib/components/WalletSelect/index.js +0 -62
- package/dist/lib/components/modals/AssetModal.d.ts +0 -7
- package/dist/lib/components/modals/AssetModal.js +0 -28
- package/dist/lib/components/modals/SettingsModal.d.ts +0 -7
- package/dist/lib/components/modals/SettingsModal.js +0 -33
- package/src/lib/components/AssetSelect/index.tsx +0 -168
- package/src/lib/components/BlockchainSelect/index.tsx +0 -166
- package/src/lib/components/MiddleEllipsis/index.tsx +0 -27
- package/src/lib/components/Onboarding/index.tsx +0 -251
- package/src/lib/components/WalletSelect/index.tsx +0 -112
- package/src/lib/components/modals/AssetModal.tsx +0 -67
- package/src/lib/components/modals/SettingsModal.tsx +0 -95
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import React, { useState, useEffect } from "react";
|
|
2
|
-
import {
|
|
3
|
-
Button,
|
|
4
|
-
Modal,
|
|
5
|
-
ModalOverlay,
|
|
6
|
-
ModalContent,
|
|
7
|
-
ModalHeader,
|
|
8
|
-
ModalCloseButton,
|
|
9
|
-
ModalBody,
|
|
10
|
-
ModalFooter,
|
|
11
|
-
Tabs,
|
|
12
|
-
Tab,
|
|
13
|
-
TabList,
|
|
14
|
-
TabPanel,
|
|
15
|
-
TabPanels,
|
|
16
|
-
} from "@chakra-ui/react";
|
|
17
|
-
import Balances from "lib/components/pioneer/Pioneer/Balances";
|
|
18
|
-
import Wallets from "lib/components/pioneer/Pioneer/Wallets";
|
|
19
|
-
import Paths from "lib/components/pioneer/Pioneer/Paths";
|
|
20
|
-
import Pubkeys from "lib/components/pioneer/Pioneer/Pubkeys";
|
|
21
|
-
import Onboarding from "lib/components/Onboarding";
|
|
22
|
-
import { usePioneer } from "lib/context/Pioneer";
|
|
23
|
-
|
|
24
|
-
interface SettingsModalProps {
|
|
25
|
-
isOpen: boolean;
|
|
26
|
-
onClose: () => void;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
const SettingsModal: React.FC<SettingsModalProps> = ({ isOpen, onClose }) => {
|
|
30
|
-
const { state } = usePioneer();
|
|
31
|
-
const { app, status } = state;
|
|
32
|
-
const [isOnboarded, setIsOnboarded] = useState(false);
|
|
33
|
-
|
|
34
|
-
const onStart = async function(){
|
|
35
|
-
try{
|
|
36
|
-
console.log("onStart")
|
|
37
|
-
let isOnboarded = await localStorage.getItem("isOnboarded")
|
|
38
|
-
if(!isOnboarded){
|
|
39
|
-
console.log("Starting onboarding process")
|
|
40
|
-
}
|
|
41
|
-
}catch(e){
|
|
42
|
-
console.error(e)
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
useEffect(() => {
|
|
46
|
-
onStart()
|
|
47
|
-
}, []);
|
|
48
|
-
|
|
49
|
-
useEffect(() => {
|
|
50
|
-
//console.log("app: ", app);
|
|
51
|
-
}, [app, app?.balances, app?.pubkeys, app?.wallets, app?.paths, status]);
|
|
52
|
-
|
|
53
|
-
return (
|
|
54
|
-
<Modal isOpen={isOpen} onClose={onClose} size={"xl"}>
|
|
55
|
-
<ModalOverlay />
|
|
56
|
-
<ModalContent>
|
|
57
|
-
{!isOnboarded ? (<Onboarding onClose={onClose} />) : (<div>
|
|
58
|
-
<ModalHeader>Pioneer Settings</ModalHeader>
|
|
59
|
-
<ModalCloseButton />
|
|
60
|
-
<ModalBody>
|
|
61
|
-
<Tabs variant="enclosed">
|
|
62
|
-
<TabList>
|
|
63
|
-
<Tab>Wallets</Tab>
|
|
64
|
-
<Tab>Nodes</Tab>
|
|
65
|
-
<Tab>PubKeys</Tab>
|
|
66
|
-
<Tab>Balances</Tab>
|
|
67
|
-
</TabList>
|
|
68
|
-
<TabPanels>
|
|
69
|
-
<TabPanel>
|
|
70
|
-
<Wallets wallets={app?.wallets || []} />
|
|
71
|
-
</TabPanel>
|
|
72
|
-
{/*<TabPanel>*/}
|
|
73
|
-
{/* <Paths paths={app?.paths || []} />*/}
|
|
74
|
-
{/*</TabPanel>*/}
|
|
75
|
-
<TabPanel>
|
|
76
|
-
<Pubkeys pubkeys={app?.pubkeys || []} />
|
|
77
|
-
</TabPanel>
|
|
78
|
-
<TabPanel>
|
|
79
|
-
<Balances balances={app?.balances || []} />
|
|
80
|
-
</TabPanel>
|
|
81
|
-
</TabPanels>
|
|
82
|
-
</Tabs>
|
|
83
|
-
</ModalBody>
|
|
84
|
-
<ModalFooter>
|
|
85
|
-
<Button colorScheme="blue" mr={3} onClick={onClose}>
|
|
86
|
-
Close
|
|
87
|
-
</Button>
|
|
88
|
-
</ModalFooter>
|
|
89
|
-
</div>)}
|
|
90
|
-
</ModalContent>
|
|
91
|
-
</Modal>
|
|
92
|
-
);
|
|
93
|
-
};
|
|
94
|
-
|
|
95
|
-
export default SettingsModal;
|