@swype-org/react-sdk 0.1.204 → 0.1.205

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 CHANGED
@@ -5246,7 +5246,8 @@ function TokenPickerScreen({
5246
5246
  onBack,
5247
5247
  onLogout,
5248
5248
  depositAmount,
5249
- selectedTokenSymbol
5249
+ selectedTokenSymbol,
5250
+ selectedWalletId
5250
5251
  }) {
5251
5252
  const { tokens: t } = useSwypeConfig();
5252
5253
  const entries = [];
@@ -5302,6 +5303,7 @@ function TokenPickerScreen({
5302
5303
  /* @__PURE__ */ jsxRuntime.jsx("div", { style: sectionLabelStyle(t.textMuted), children: "Choose token" }),
5303
5304
  /* @__PURE__ */ jsxRuntime.jsx("div", { style: tokenListStyle2, children: entries.map((entry) => {
5304
5305
  const authorized = entry.status === "AUTHORIZED";
5306
+ const isSelected = entry.walletId === selectedWalletId && entry.tokenSymbol === selectedTokenSymbol;
5305
5307
  return /* @__PURE__ */ jsxRuntime.jsxs(
5306
5308
  "button",
5307
5309
  {
@@ -5324,7 +5326,7 @@ function TokenPickerScreen({
5324
5326
  !authorized && /* @__PURE__ */ jsxRuntime.jsx("span", { style: notAuthorizedStyle(t.textMuted), children: "Not authorized" })
5325
5327
  ] })
5326
5328
  ] }),
5327
- /* @__PURE__ */ jsxRuntime.jsx("div", { style: authorized ? selectCircleSelectedStyle(t.accent) : selectCircleStyle(t.border), children: authorized && /* @__PURE__ */ jsxRuntime.jsx("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z", fill: "#fff" }) }) })
5329
+ /* @__PURE__ */ jsxRuntime.jsx("div", { style: isSelected ? selectCircleSelectedStyle(t.accent) : selectCircleStyle(t.border), children: isSelected && /* @__PURE__ */ jsxRuntime.jsx("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z", fill: "#fff" }) }) })
5328
5330
  ]
5329
5331
  },
5330
5332
  `${entry.walletId}-${entry.tokenSymbol}-${entry.chainName}`
@@ -5733,7 +5735,8 @@ function StepRendererContent({
5733
5735
  onBack: () => handlers.onNavigate(state.previousStep === "setup" ? "setup" : "deposit"),
5734
5736
  onLogout: handlers.onLogout,
5735
5737
  depositAmount: depositAmount ?? void 0,
5736
- selectedTokenSymbol: selectedSource?.token.symbol
5738
+ selectedTokenSymbol: selectedSource?.token.symbol,
5739
+ selectedWalletId: state.selectedWalletId
5737
5740
  }
5738
5741
  );
5739
5742
  }