mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-04-14 07:00:51 -04:00
feat: remove unique case of col component (#51323)
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
.control-label.email-label {
|
||||
text-align: left;
|
||||
.update-email-field {
|
||||
display: flex;
|
||||
gap: 1em;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.update-email-field label {
|
||||
margin-bottom: unset;
|
||||
}
|
||||
|
||||
@@ -78,25 +78,17 @@ function UpdateEmail({ isNewEmail, t, updateMyEmail }: UpdateEmailProps) {
|
||||
<Row>
|
||||
<form onSubmit={handleSubmit}>
|
||||
<FormGroup
|
||||
className='update-email-field'
|
||||
controlId='emailInput'
|
||||
validationState={getEmailValidationState()}
|
||||
>
|
||||
<Col
|
||||
className='email-label'
|
||||
// TODO
|
||||
componentClass={ControlLabel as unknown}
|
||||
sm={2}
|
||||
>
|
||||
{t('misc.email')}
|
||||
</Col>
|
||||
<Col sm={10}>
|
||||
<FormControl
|
||||
onChange={onChange}
|
||||
placeholder='camperbot@example.com'
|
||||
required={true}
|
||||
type='email'
|
||||
/>
|
||||
</Col>
|
||||
<ControlLabel>{t('misc.email')}</ControlLabel>
|
||||
<FormControl
|
||||
onChange={onChange}
|
||||
placeholder='camperbot@example.com'
|
||||
required={true}
|
||||
type='email'
|
||||
/>
|
||||
</FormGroup>
|
||||
<Button
|
||||
block={true}
|
||||
|
||||
Reference in New Issue
Block a user