feat(app): show precise and handle supported assets (#2205)
Added `<Precise />` component. It utilizes the `asset` from balance
queries and `supportedAsset` from chain.assets (considered the source of
truth, while `asset` contains the balance).
To retrieve asset information from the chain, use `getSupportedAsset` in
helpers.ts.
### Usage:
`<Precise asset={asset} supportedAsset={supportedAsset} showSymbol
showToolTip />`
Display symbol using `showSymbol`
Show tooltip using `showToolTip`
#### _Toggle for unsupported_
This pr also handles show/hide unsupported assets using
`$showUnsupported` and a toggle under wallets.
<img width="1337" alt="image"
src="https://github.com/unionlabs/union/assets/36674091/3928a9d3-98b0-4894-891f-cea02f89a555">
-----
#### Considerations:
- Retrieve supportedAsset within the component
- Construct a new object combining data from chain.assets with the
user's balance object. C
cor committed
da93ef2bcb845c73adfcf0404f44ee5576ec2904
Committed by GitHub <noreply@github.com>
on 6/20/2024, 5:30:47 PM