TF-93 price field
This commit is contained in:
23
src/core/components/PriceField.jsx
Normal file
23
src/core/components/PriceField.jsx
Normal file
@@ -0,0 +1,23 @@
|
||||
import {InputAdornment, TextField, Typography} from "@mui/material";
|
||||
import {useTranslations} from "next-intl";
|
||||
|
||||
const PriceField = (props) => {
|
||||
const t = useTranslations();
|
||||
return (
|
||||
<TextField
|
||||
InputProps={{
|
||||
endAdornment: (
|
||||
<InputAdornment position="end">
|
||||
<Typography
|
||||
sx={{margin: 1}}
|
||||
component="span">{((props.value) / 10).toLocaleString()}</Typography>
|
||||
<Typography component="span"
|
||||
variant="caption">{t("ConfirmDialog.toman")}</Typography>
|
||||
</InputAdornment>
|
||||
),
|
||||
}}
|
||||
{...props}
|
||||
/>
|
||||
)
|
||||
}
|
||||
export default PriceField
|
||||
Reference in New Issue
Block a user