Skip to content

Commit

Permalink
disabled email input
Browse files Browse the repository at this point in the history
* Disabled email input
  • Loading branch information
Elkrival committed Nov 15, 2023
1 parent c37a5d7 commit c010187
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions views/forms/TextInputTopLabel/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ const TextInputTopLabel = (props) => {
type={props.type}
sx={props.sx}
size={props.size}
disabled={props.disabled}
/>
{!!errors[props.name] && (
<InputLabel
Expand Down
7 changes: 6 additions & 1 deletion views/forms/UserProfileForm/UserProfileFormFields.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,19 @@ const UserProfileFormFields = ({ control }) => {
/>
<TextInputTopLabel
control={control}
inputProps={{ sx: { borderRadius: borderRadius[8] } }}
inputProps={{
sx: {
borderRadius: borderRadius[8],
},
}}
sx={{
mb: '20px',
}}
label="Email"
name="mail"
size="small"
fullWidth
disabled
/>
</div>
)
Expand Down

0 comments on commit c010187

Please sign in to comment.