@pioneer-platform/pioneer-react 0.2.33 → 0.2.35
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.js +19458 -11127
- package/dist/{index_3bde86fb.js → index_622864fe.js} +4 -4
- package/dist/{index_49fce0b0.js → index_bc632802.js} +21011 -12680
- package/package.json +2 -1
- package/src/index.tsx +4 -3
- package/src/lib/components/modals/Onboarding.tsx +67 -0
- package/src/lib/context/Pioneer/index.tsx +81 -32
- package/src/lib/components/pioneer/Pioneer/Nodes.tsx +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { u as usePioneer, j as jsxRuntimeExports, S as Search2Icon, M as MiddleEllipsis, W as WalletSelect, A as AssetSelect } from "./
|
|
1
|
+
import { u as usePioneer, j as jsxRuntimeExports, S as Search2Icon, M as MiddleEllipsis, W as WalletSelect, A as AssetSelect } from "./index_bc632802.js";
|
|
2
2
|
import { Stack, InputGroup, InputLeftElement, Input, Box, Text, Checkbox, HStack, Avatar, Button, useDisclosure, Modal, ModalOverlay, ModalContent, ModalHeader, ModalCloseButton, ModalBody, ModalFooter } from "@chakra-ui/react";
|
|
3
3
|
import { useState, useEffect } from "react";
|
|
4
4
|
import "react-dom";
|
|
@@ -157,8 +157,8 @@ const Home = () => {
|
|
|
157
157
|
const [modalType, setModalType] = useState("");
|
|
158
158
|
const { isOpen, onOpen, onClose } = useDisclosure();
|
|
159
159
|
useEffect(() => {
|
|
160
|
-
console.log("pubkeyContext: ", pubkeyContext);
|
|
161
|
-
setAddress(pubkeyContext.master || pubkeyContext.pubkey);
|
|
160
|
+
console.log("2 pubkeyContext: ", pubkeyContext);
|
|
161
|
+
setAddress(pubkeyContext.master || pubkeyContext.pubkey || pubkeyContext);
|
|
162
162
|
}, [pubkeyContext]);
|
|
163
163
|
const openModal = (type) => {
|
|
164
164
|
setModalType(type);
|
|
@@ -195,7 +195,7 @@ const Home = () => {
|
|
|
195
195
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Button, { onClick: () => openModal("Select Blockchain"), children: "Select Blockchain" }),
|
|
196
196
|
/* @__PURE__ */ jsxRuntimeExports.jsx("br", {}),
|
|
197
197
|
"Address: ",
|
|
198
|
-
|
|
198
|
+
address,
|
|
199
199
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Button, { onClick: () => openModal("View Address"), children: "View Address" }),
|
|
200
200
|
/* @__PURE__ */ jsxRuntimeExports.jsx("br", {})
|
|
201
201
|
] });
|