TF-101 fix responsive bug
This commit is contained in:
@@ -1,23 +1,23 @@
|
||||
import {InputAdornment, TextField, Typography} from "@mui/material";
|
||||
import {Stack, 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}
|
||||
/>
|
||||
)
|
||||
<Stack spacing={1}>
|
||||
<Stack>
|
||||
<TextField
|
||||
{...props}
|
||||
/>
|
||||
</Stack>
|
||||
<Stack direction="row" alignItems="center">
|
||||
<Typography sx={{margin: 1}} component="span">
|
||||
{((props.value) / 10).toLocaleString()}
|
||||
</Typography>
|
||||
<Typography component="span" variant="caption">
|
||||
{t("ConfirmDialog.toman")}
|
||||
</Typography>
|
||||
</Stack>
|
||||
</Stack>)
|
||||
}
|
||||
export default PriceField
|
||||
Reference in New Issue
Block a user