You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add network-mismatch warning for unsupported Stellar network (#117)
- Add useNetworkMismatch hook that compares the connected wallet's chain
against the app's defaultChain (wagmi); only flags a mismatch when a
wallet is actually connected so disconnected users are unaffected
- Add NetworkMismatchBanner component styled consistently with
WalletConnectCalloutBanner; self-contained (calls the hook internally),
renders nothing when there is no mismatch, role=alert + aria-live for
accessibility
- Wire mismatch guard into CreatorCard: buy button disabled, handleBuy
returns early with a toast, BuyActionHelperText receives disabledReason,
NetworkMismatchBanner shown when connected + mismatched
- Wire mismatch guard into LandingPage: desktop and mobile Buy/Sell
buttons disabled, NetworkMismatchBanner shown above trade buttons
- Add useNetworkMismatch unit tests (4/4 passing): disconnected wallet,
correct chain, wrong chain, static expected-chain values
0 commit comments