fix: ru locale for numbers
This commit is contained in:
@ -56,6 +56,8 @@ const useProductServicesTableColumns = ({
|
|||||||
{
|
{
|
||||||
accessor: "price",
|
accessor: "price",
|
||||||
title: "Цена",
|
title: "Цена",
|
||||||
|
render: productService =>
|
||||||
|
productService.price.toLocaleString("ru"),
|
||||||
footer: data.length > 0 && (
|
footer: data.length > 0 && (
|
||||||
<Box my={"sm"}>
|
<Box my={"sm"}>
|
||||||
<Text fw={700}>
|
<Text fw={700}>
|
||||||
|
|||||||
@ -27,6 +27,8 @@ const useDealServicesTableColumns = ({ onChange, onDelete }: Props) => {
|
|||||||
accessor: "price",
|
accessor: "price",
|
||||||
title: "Цена",
|
title: "Цена",
|
||||||
width: "30%",
|
width: "30%",
|
||||||
|
render: dealService =>
|
||||||
|
dealService.price.toLocaleString("ru"),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
accessor: "actions",
|
accessor: "actions",
|
||||||
|
|||||||
@ -57,5 +57,10 @@ export const theme = createTheme({
|
|||||||
size: "sm",
|
size: "sm",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
NumberInput: {
|
||||||
|
defaultProps: {
|
||||||
|
decimalSeparator: ",",
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user