useDApp icon indicating copy to clipboard operation
useDApp copied to clipboard

Currency formatting options

Open nezouse opened this issue 3 years ago • 1 comments

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?

nezouse avatar Feb 16 '22 15:02 nezouse

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={...} />

dmaretskyi avatar Apr 07 '22 14:04 dmaretskyi