useDApp
useDApp copied to clipboard
Currency formatting options
There is a function to format currencies in useDApp, but there is no option to globally set config for it (you have to either pass options to every single call or create a helper which is not very useful as this method is attached to Currency class).
What about option to specify custom options in useDApp config?
Currency formatting is currently disconnected from react and cannot consume the config context. To make it work with the config we would have to introduce a new component or a hook to format currency: <CurrencyDisplay value={...} />