LFFE-23 Change direction style in price component to LTR
This commit is contained in:
11
src/core/components/LtrTextField.jsx
Normal file
11
src/core/components/LtrTextField.jsx
Normal file
@@ -0,0 +1,11 @@
|
||||
import {styled, TextField} from "@mui/material";
|
||||
|
||||
const LtrTextField = styled(TextField)`
|
||||
.MuiInputBase-input {
|
||||
/* @noflip */
|
||||
direction: ltr;
|
||||
text-align: left;
|
||||
}
|
||||
`;
|
||||
|
||||
export default LtrTextField
|
||||
@@ -1,12 +1,13 @@
|
||||
import {Stack, TextField, Typography} from "@mui/material";
|
||||
import {Stack, Typography} from "@mui/material";
|
||||
import {useTranslations} from "next-intl";
|
||||
import LtrTextField from "@/core/components/LtrTextField";
|
||||
|
||||
const PriceField = (props) => {
|
||||
const t = useTranslations();
|
||||
return (
|
||||
<Stack spacing={1}>
|
||||
<Stack>
|
||||
<TextField
|
||||
<LtrTextField
|
||||
{...props}
|
||||
/>
|
||||
</Stack>
|
||||
|
||||
Reference in New Issue
Block a user