Skip to content

Commit f6072fb

Browse files
committed
Using default small mui theme text field
1 parent d93de2c commit f6072fb

File tree

2 files changed

+19
-41
lines changed

2 files changed

+19
-41
lines changed

src/components/common/CommonTextField.jsx

Lines changed: 0 additions & 28 deletions
This file was deleted.

src/components/users/UserForm.jsx

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import { useHistory } from 'react-router-dom';
44
import Button from '@mui/material/Button'
55
import Typography from '@mui/material/Typography'
66
import Box from '@mui/material/Box'
7+
import TextField from '@mui/material/TextField'
78
import APIService from '../../services/APIService'
8-
import CommonTextField from '../common/CommonTextField';
99
import { OperationsContext } from '../app/LayoutContext';
1010
import { refreshCurrentUserCache, getCurrentUser } from '../../common/utils'
1111

@@ -64,17 +64,19 @@ const UserForm = ({ user }) => {
6464
{t('user.name_and_description')}
6565
</Typography>
6666
<div className='col-xs-12' style={{padding: '16px', display: 'flex', alignItems: 'center'}}>
67-
<CommonTextField
67+
<TextField
6868
required
69-
variant='standard'
69+
size='small'
70+
variant='outlined'
7071
label={t('user.first_name')}
7172
value={firstName}
7273
onChange={event => setFirstName(event.target.value || '')}
7374
sx={{width: '30%', maxWidth: '210px'}}
7475
/>
75-
<CommonTextField
76+
<TextField
7677
required
77-
variant='standard'
78+
size='small'
79+
variant='outlined'
7880
label={t('user.last_name')}
7981
value={lastName}
8082
onChange={event => setLastName(event.target.value || '')}
@@ -85,35 +87,39 @@ const UserForm = ({ user }) => {
8587
</Typography>
8688
</div>
8789
<div className='col-xs-12' style={{padding: '16px', display: 'flex', alignItems: 'center'}}>
88-
<CommonTextField
90+
<TextField
91+
size='small'
8992
required
9093
disabled
91-
variant='standard'
94+
variant='outlined'
9295
label={t('user.email_address')}
9396
value={email}
9497
onChange={event => setEmail(event.target.value || '')}
9598
sx={{width: '70%', maxWidth: '460px'}}
9699
/>
97100
</div>
98101
<div className='col-xs-12' style={{padding: '16px', display: 'flex', alignItems: 'center'}}>
99-
<CommonTextField
100-
variant='standard'
102+
<TextField
103+
size='small'
104+
variant='outlined'
101105
label={t('user.company')}
102106
value={company}
103107
onChange={event => setCompany(event.target.value || '')}
104108
sx={{width: '30%', maxWidth: '210px'}}
105109
/>
106-
<CommonTextField
107-
variant='standard'
110+
<TextField
111+
size='small'
112+
variant='outlined'
108113
label={t('user.location')}
109114
value={location}
110115
onChange={event => setLocation(event.target.value || '')}
111116
sx={{width: '30%', maxWidth: '210px', marginLeft: '16px'}}
112117
/>
113118
</div>
114119
<div className='col-xs-12' style={{padding: '16px', display: 'flex', alignItems: 'center'}}>
115-
<CommonTextField
116-
variant='standard'
120+
<TextField
121+
size='small'
122+
variant='outlined'
117123
label={t('user.website')}
118124
value={website}
119125
onChange={event => setWebsite(event.target.value || '')}

0 commit comments

Comments
 (0)