wormhole-foundation / wormhole-dashboard

We could have named this vigilant-giggle. It's surprisingly not far off.

Home Page:https://wormhole-foundation.github.io/wormhole-dashboard/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Network selection in query string

evan-gray opened this issue · comments

The last selected network (top-right drop down) is saved in local storage, but it would be nice to be able to navigate back to switch to the previously selected network as well as send someone a link to a particular network dashboard (e.g. testnet or mainnet).

A history.push on network switch and a useEffect at the top level to grab the value from the url should get this done (this should override the local storage value, if set).