Description
If a user connects their Freighter wallet but they are on the Stellar "Public" network while our app is on "Testnet", all transactions will fail.
Instead of showing generic errors, we need a dedicated full-screen overlay that blocks the UI and tells them to switch networks.
This is a critical UX pattern that prevents users from getting frustrated with failed contract calls.
It ensures the app environment and wallet environment are always perfectly synced.
Requirements
Description
If a user connects their Freighter wallet but they are on the Stellar "Public" network while our app is on "Testnet", all transactions will fail.
Instead of showing generic errors, we need a dedicated full-screen overlay that blocks the UI and tells them to switch networks.
This is a critical UX pattern that prevents users from getting frustrated with failed contract calls.
It ensures the app environment and wallet environment are always perfectly synced.
Requirements
UnsupportedNetwork.tsxcomponent.