fix: issue in user profile

This commit is contained in:
2025-07-16 23:39:21 +03:30
parent be6c80c136
commit 3d5869318a
2 changed files with 33 additions and 0 deletions

View File

@@ -7,16 +7,25 @@ import {
useColorScheme, useColorScheme,
} from '@mui/material'; } from '@mui/material';
import './App.css'; import './App.css';
<<<<<<< HEAD
import { useTranslation } from 'react-i18next'; import { useTranslation } from 'react-i18next';
import { LanguageManager } from './components/LanguageManager'; import { LanguageManager } from './components/LanguageManager';
<<<<<<< HEAD <<<<<<< HEAD
<<<<<<< HEAD
======= =======
>>>>>>> f1620b6 (fix: issue in user profile) >>>>>>> f1620b6 (fix: issue in user profile)
=======
=======
import { UserProfileForm } from './features/profile/components/UserProfileForm';
>>>>>>> 3698cbf (feat: implement user profile form)
>>>>>>> f9815fb (fix: issue in user profile)
function App() { function App() {
const { t } = useTranslation(); const { t } = useTranslation();
return ( return (
<<<<<<< HEAD
<> <>
<CssBaseline /> <CssBaseline />
<LanguageManager /> <LanguageManager />
@@ -45,6 +54,11 @@ function App() {
</Box> </Box>
</div> </div>
</> </>
=======
<div>
<UserProfileForm />
</div>
>>>>>>> 3698cbf (feat: implement user profile form)
); );
} }

View File

@@ -108,12 +108,16 @@ export function UserProfileForm() {
<Grid container spacing={0.5}> <Grid container spacing={0.5}>
<Grid item xs={12} sm={6}> <Grid item xs={12} sm={6}>
<Box sx={{ mb: 2 }}> <Box sx={{ mb: 2 }}>
<<<<<<< HEAD
<Typography <Typography
variant="subtitle2" variant="subtitle2"
sx={{ color: 'gray', fontSize: '14px', ml: '34vh' }} sx={{ color: 'gray', fontSize: '14px', ml: '34vh' }}
> >
نام نام
</Typography> </Typography>
=======
<Typography variant="subtitle2">نام</Typography>
>>>>>>> f9815fb (fix: issue in user profile)
{isEditing ? ( {isEditing ? (
<TextField <TextField
fullWidth fullWidth
@@ -125,9 +129,12 @@ export function UserProfileForm() {
inputProps={{ inputProps={{
sx: { sx: {
height: '12px', height: '12px',
<<<<<<< HEAD
fontSize: '16px', fontSize: '16px',
fontWeight: 'bold', fontWeight: 'bold',
direction: 'rtl', direction: 'rtl',
=======
>>>>>>> f9815fb (fix: issue in user profile)
}, },
}} }}
/> />
@@ -139,12 +146,16 @@ export function UserProfileForm() {
</Box> </Box>
<Box> <Box>
<<<<<<< HEAD
<Typography <Typography
variant="subtitle2" variant="subtitle2"
sx={{ color: 'gray', fontSize: '14px' }} sx={{ color: 'gray', fontSize: '14px' }}
> >
جنسیت جنسیت
</Typography> </Typography>
=======
<Typography variant="subtitle2">جنسیت</Typography>
>>>>>>> f9815fb (fix: issue in user profile)
{isEditing ? ( {isEditing ? (
<FormControl sx={{ width: '230px' }}> <FormControl sx={{ width: '230px' }}>
<InputLabel id="sex-label">جنسیت</InputLabel> <InputLabel id="sex-label">جنسیت</InputLabel>
@@ -175,10 +186,14 @@ export function UserProfileForm() {
<Grid item xs={12} sm={6}> <Grid item xs={12} sm={6}>
<Box sx={{ mb: 2 }}> <Box sx={{ mb: 2 }}>
<<<<<<< HEAD
<Typography <Typography
variant="subtitle2" variant="subtitle2"
sx={{ color: 'gray', fontSize: '14px' }} sx={{ color: 'gray', fontSize: '14px' }}
> >
=======
<Typography variant="subtitle2" sx={{ width: '230px' }}>
>>>>>>> f9815fb (fix: issue in user profile)
نام خانوادگی نام خانوادگی
</Typography> </Typography>
{isEditing ? ( {isEditing ? (
@@ -203,12 +218,16 @@ export function UserProfileForm() {
</Box> </Box>
<Box> <Box>
<<<<<<< HEAD
<Typography <Typography
variant="subtitle2" variant="subtitle2"
sx={{ color: 'gray', fontSize: '14px' }} sx={{ color: 'gray', fontSize: '14px' }}
> >
کد ملی کد ملی
</Typography> </Typography>
=======
<Typography variant="subtitle2">کد ملی</Typography>
>>>>>>> f9815fb (fix: issue in user profile)
{isEditing ? ( {isEditing ? (
<TextField <TextField
fullWidth fullWidth