@swype-org/react-sdk 0.1.217 → 0.1.218
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 +4 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -8
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3264,13 +3264,8 @@ function WalletPickerScreen({
|
|
|
3264
3264
|
}
|
|
3265
3265
|
}, [onPrepareProvider]);
|
|
3266
3266
|
const hasPending = pendingConnections != null && pendingConnections.length > 0;
|
|
3267
|
-
const
|
|
3268
|
-
|
|
3269
|
-
{ id: "rabby", name: "Rabby" },
|
|
3270
|
-
{ id: "ora", name: "Ora" },
|
|
3271
|
-
{ id: "phantom", name: "Phantom" }
|
|
3272
|
-
];
|
|
3273
|
-
const selectedProvider = displayProviders.find((p) => p.id === selectedProviderId);
|
|
3267
|
+
const providersLoading = providers.length === 0;
|
|
3268
|
+
const selectedProvider = providers.find((p) => p.id === selectedProviderId);
|
|
3274
3269
|
if (loading) {
|
|
3275
3270
|
return /* @__PURE__ */ jsxs(ScreenLayout, { children: [
|
|
3276
3271
|
/* @__PURE__ */ jsx(ScreenHeader, { title: "Set up Blink", onBack, onLogout }),
|
|
@@ -3365,7 +3360,8 @@ function WalletPickerScreen({
|
|
|
3365
3360
|
]
|
|
3366
3361
|
}
|
|
3367
3362
|
),
|
|
3368
|
-
cryptoExpanded && /* @__PURE__ */ jsx("div", { style:
|
|
3363
|
+
cryptoExpanded && providersLoading && /* @__PURE__ */ jsx("div", { style: { textAlign: "center", padding: "24px 0" }, children: /* @__PURE__ */ jsx(Spinner, { label: "Loading wallets..." }) }),
|
|
3364
|
+
cryptoExpanded && !providersLoading && /* @__PURE__ */ jsx("div", { style: gridStyle, children: providers.map((p) => {
|
|
3369
3365
|
const logoSrc = "logoURI" in p && p.logoURI || KNOWN_LOGOS[p.name.toLowerCase()];
|
|
3370
3366
|
const emoji = WALLET_EMOJIS[p.name.toLowerCase()] ?? p.name.charAt(0);
|
|
3371
3367
|
const isSelected = selectedProviderId === p.id;
|