web: add previous/compare values for all charts
This commit is contained in:
11
apps/web/src/hooks/useNumerFormatter.ts
Normal file
11
apps/web/src/hooks/useNumerFormatter.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
export function useNumber() {
|
||||
const locale = 'en-gb';
|
||||
|
||||
return {
|
||||
format: (value: number) => {
|
||||
return new Intl.NumberFormat(locale, {
|
||||
maximumSignificantDigits: 20,
|
||||
}).format(value);
|
||||
},
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user