Skip to content

Commit 1ba294b

Browse files
committed
fix for notification
1 parent 19717e4 commit 1ba294b

File tree

4 files changed

+14
-15
lines changed

4 files changed

+14
-15
lines changed

src/components/notifications/CreateHeaderDetails.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import React from 'react'
22
import { ReactComponent as DeleteCross } from '../../assets/icons/ic-cross.svg'
33
import { CreateHeaderDetailsType } from './types'
4+
import { CustomInput } from '@devtron-labs/devtron-fe-common-lib'
45

56
export default function CreateHeaderDetails({
67
index,
@@ -22,16 +23,16 @@ export default function CreateHeaderDetails({
2223

2324
return (
2425
<div className="flexbox mb-8">
25-
<input
26-
className="form__input tag-input pt-4-imp pb-4-imp fs-13 dc__no-right-radius"
26+
<CustomInput
27+
rootClassName="tag-input pt-4-imp pb-4-imp fs-13 dc__no-right-radius"
2728
value={headerData?.["key"]}
2829
name="key"
2930
onChange={handleInputChange}
3031
placeholder="Enter key"
3132
data-testid={`header-key-${index}`}
3233
/>
33-
<input
34-
className="form__input tag-input pt-4-imp pb-4-imp fs-13 dc__no-border-radius dc__no-right-border dc__no-left-border"
34+
<CustomInput
35+
rootClassName="tag-input pt-4-imp pb-4-imp fs-13 dc__no-border-radius dc__no-right-border dc__no-left-border"
3536
value={headerData?.["value"]}
3637
name="value"
3738
onChange={handleInputChange}

src/components/notifications/SESConfigModal.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -288,8 +288,8 @@ export class SESConfigModal extends Component<SESConfigModalProps, SESConfigModa
288288
/>
289289
</label>
290290
<label className="form__row">
291-
<span className="form__label">Secret Access Key*</span>
292291
<CustomInput
292+
label="Secret Access Key"
293293
data-testid="add-ses-secret-access-key"
294294
type="text"
295295
name="app-name"
@@ -303,8 +303,8 @@ export class SESConfigModal extends Component<SESConfigModalProps, SESConfigModa
303303
/>
304304
</label>
305305
<div className="form__row">
306-
<label htmlFor="" className="form__label">
307-
AWS Region*
306+
<label htmlFor="" className="form__label dc__reuired-field">
307+
AWS Region
308308
</label>
309309
<ReactSelect
310310
classNamePrefix="add-ses-aws-region"

src/components/notifications/SMTPConfigModal.tsx

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ export class SMTPConfigModal extends Component<SMTPConfigModalProps, SMTPConfigM
178178
<label className="form__row">
179179
<CustomInput
180180
name="configName "
181+
label="Configuration name"
181182
data-testid="add-smtp-configuration-name"
182183
ref={(node) => (this._configName = node)}
183184
value={this.state.form.configName}
@@ -205,7 +206,7 @@ export class SMTPConfigModal extends Component<SMTPConfigModalProps, SMTPConfigM
205206
/>
206207
</label>
207208
<label className="form__row">
208-
< CustomInput
209+
<CustomInput
209210
label="SMTP Port"
210211
data-testid="add-smtp-port"
211212
name="port"
@@ -219,10 +220,7 @@ export class SMTPConfigModal extends Component<SMTPConfigModalProps, SMTPConfigM
219220
/>
220221
</label>
221222
<div className="form__row">
222-
<label htmlFor="" className="form__label">
223-
SMTP Username*
224-
</label>
225-
< CustomInput
223+
<CustomInput
226224
label="SMTP Username"
227225
data-testid="add-smtp-username"
228226
name="authUser"
@@ -248,8 +246,8 @@ export class SMTPConfigModal extends Component<SMTPConfigModalProps, SMTPConfigM
248246
/>
249247
</div>
250248
<label className="form__row">
251-
<span className="form__label">Send email from*</span>
252-
< CustomInput
249+
<CustomInput
250+
label="Send email from"
253251
data-testid="add-smtp-send-email"
254252
type="email"
255253
name="fromEmail"

src/components/notifications/SlackConfigModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ export class SlackConfigModal extends Component<SlackConfigModalProps, SlackConf
218218
/>
219219
</label>
220220
<div>
221-
<label className="form__label">Project*
221+
<label className="form__label dc__required-field">Project
222222
<Tippy className="default-tt" arrow={true} trigger={"click"}
223223
interactive={true} placement="top" content="Required to control user Acccess">
224224
<Help className="ml-5 dc__vertical-align-middle icon-dim-16 cursor" />

0 commit comments

Comments
 (0)