feat: deals table
This commit is contained in:
@@ -20,7 +20,7 @@ type Props = {
|
|||||||
export const Board: FC<Props> = ({droppableId, title, summaries, color, withCreateButton = false}) => {
|
export const Board: FC<Props> = ({droppableId, title, summaries, color, withCreateButton = false}) => {
|
||||||
const getDealsText = () => {
|
const getDealsText = () => {
|
||||||
const pluralForm = getPluralForm(summaries.length, 'сделка', 'сделки', 'сделок');
|
const pluralForm = getPluralForm(summaries.length, 'сделка', 'сделки', 'сделок');
|
||||||
return `${summaries.length} ${pluralForm}: ${sum(summaries.map(summary => summary.totalPrice))}₽`;
|
return `${summaries.length} ${pluralForm}: ${sum(summaries.map(summary => summary.totalPrice)).toLocaleString("ru-RU")}₽`;
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user