diff --git a/client/src/pages/filaments/create.tsx b/client/src/pages/filaments/create.tsx index 842f3a3..fa27a83 100644 --- a/client/src/pages/filaments/create.tsx +++ b/client/src/pages/filaments/create.tsx @@ -4,6 +4,7 @@ import { Create, useForm, useSelect } from "@refinedev/antd"; import { Form, Input, Select, InputNumber, ColorPicker } from "antd"; import TextArea from "antd/es/input/TextArea"; import { IVendor } from "../vendors/model"; +import { numberFormatter, numberParser } from "../../utils/parsing"; interface CreateOrCloneProps { mode: "create" | "clone"; @@ -90,7 +91,12 @@ export const FilamentCreate: React.FC< }, ]} > - + - + - + - + - + - + - + = () => { const { formProps, saveButtonProps } = useForm(); @@ -120,7 +121,12 @@ export const FilamentEdit: React.FC = () => { }, ]} > - + = () => { }, ]} > - + = () => { }, ]} > - + = () => { }, ]} > - + = () => { }, ]} > - + = () => { }, ]} > - + = () => { }, ]} > - + - + = () => { }, ]} > - + + {/* TODO: Allow higher precision here. + However, that requires that we can handle the , -> . replacement in the number parser + more elegantly for locales which use , as a thousands separator. */}