mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 05:10:31 +00:00
fix: numeric values formating.
This commit is contained in:
10
client/src/components/Utils/FormatNumber.js
Normal file
10
client/src/components/Utils/FormatNumber.js
Normal file
@@ -0,0 +1,10 @@
|
||||
import React from 'react';
|
||||
import { formattedAmount } from 'utils';
|
||||
|
||||
export function FormatNumber({ value, currency = '', noZero }) {
|
||||
return formattedAmount(value, currency, { noZero });
|
||||
}
|
||||
|
||||
export function FormatNumberCell({ value, column: { formatNumber } }) {
|
||||
return <FormatNumber value={value} {...formatNumber} />;
|
||||
}
|
||||
Reference in New Issue
Block a user