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