@volr/react-ui 0.1.60 → 0.1.61
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.cjs +17 -17
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +17 -17
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -2386,7 +2386,7 @@ function AccountModal({ isOpen, onClose, onError }) {
|
|
|
2386
2386
|
return /* @__PURE__ */ jsxs(Modal, { open: isOpen, onOpenChange: (open) => !open && onClose(), children: [
|
|
2387
2387
|
/* @__PURE__ */ jsx(ModalHeader, { onClose }),
|
|
2388
2388
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
2389
|
-
/* @__PURE__ */ jsx("p", { className: "volr:text-xl volr:font-semibold volr:text-slate-900 volr:mb-4
|
|
2389
|
+
/* @__PURE__ */ jsx("p", { className: "volr:text-xl volr:font-semibold volr:text-slate-900 volr:mb-4", children: t("account.title") }),
|
|
2390
2390
|
/* @__PURE__ */ jsxs("div", { className: "volr:bg-slate-50 volr:rounded-xl volr:p-4 volr:mb-4", children: [
|
|
2391
2391
|
user.evmAddress && /* @__PURE__ */ jsxs("div", { className: "volr:flex volr:items-center volr:justify-between volr:gap-3", children: [
|
|
2392
2392
|
/* @__PURE__ */ jsxs("div", { className: "volr:flex-1 volr:min-w-0", children: [
|
|
@@ -2425,8 +2425,8 @@ function AssetSelectView({
|
|
|
2425
2425
|
}) {
|
|
2426
2426
|
const { t } = useI18n();
|
|
2427
2427
|
return /* @__PURE__ */ jsxs("div", { children: [
|
|
2428
|
-
/* @__PURE__ */ jsx("p", { className: "volr:text-xl volr:font-semibold volr:text-slate-900 volr:mb-1
|
|
2429
|
-
/* @__PURE__ */ jsx("p", { className: "volr:text-sm volr:text-slate-500 volr:mb-4
|
|
2428
|
+
/* @__PURE__ */ jsx("p", { className: "volr:text-xl volr:font-semibold volr:text-slate-900 volr:mb-1", children: t("deposit.selectTitle") }),
|
|
2429
|
+
/* @__PURE__ */ jsx("p", { className: "volr:text-sm volr:text-slate-500 volr:mb-4", children: "Supported token" }),
|
|
2430
2430
|
/* @__PURE__ */ jsx("div", { className: "volr:space-y-3", children: assets.map((a, idx) => {
|
|
2431
2431
|
const isNative = a.token === "native";
|
|
2432
2432
|
const tokenSymbol = isNative ? "ETH" : a.token.symbol;
|
|
@@ -3354,26 +3354,26 @@ function OnboardingChecker({
|
|
|
3354
3354
|
if (isLoading) {
|
|
3355
3355
|
return;
|
|
3356
3356
|
}
|
|
3357
|
+
if (user?.keyStorageType) {
|
|
3358
|
+
onHideOnboarding();
|
|
3359
|
+
return;
|
|
3360
|
+
}
|
|
3361
|
+
if (provider) {
|
|
3362
|
+
onHideOnboarding();
|
|
3363
|
+
return;
|
|
3364
|
+
}
|
|
3357
3365
|
if (isModalOpen) {
|
|
3358
3366
|
onHideOnboarding();
|
|
3359
3367
|
return;
|
|
3360
3368
|
}
|
|
3361
|
-
if (user &&
|
|
3362
|
-
if (
|
|
3363
|
-
|
|
3369
|
+
if (user && enforceSelection) {
|
|
3370
|
+
if (!keyStorageType) {
|
|
3371
|
+
console.error(
|
|
3372
|
+
"keyStorageType must be specified in VolrUIProvider props."
|
|
3373
|
+
);
|
|
3364
3374
|
return;
|
|
3365
3375
|
}
|
|
3366
|
-
|
|
3367
|
-
if (!keyStorageType) {
|
|
3368
|
-
console.error(
|
|
3369
|
-
"keyStorageType must be specified in VolrUIProvider props."
|
|
3370
|
-
);
|
|
3371
|
-
return;
|
|
3372
|
-
}
|
|
3373
|
-
onShowOnboarding();
|
|
3374
|
-
}
|
|
3375
|
-
} else if (provider) {
|
|
3376
|
-
onHideOnboarding();
|
|
3376
|
+
onShowOnboarding();
|
|
3377
3377
|
}
|
|
3378
3378
|
}, [
|
|
3379
3379
|
user,
|