diff options
author | 2022-11-02 06:31:36 +0530 | |
---|---|---|
committer | 2022-11-02 01:01:36 +0000 | |
commit | 302d595f7c289387e53a0ef7df4d574ed4e25d70 (patch) | |
tree | 2385e59eaca9c78921d9b0b3681cfba1b3eef168 /src/components/settings/services/EditServiceForm.js | |
parent | Re-enable editing of the address bar to manually access a different url withi... (diff) | |
download | ferdium-app-302d595f7c289387e53a0ef7df4d574ed4e25d70.tar.gz ferdium-app-302d595f7c289387e53a0ef7df4d574ed4e25d70.tar.zst ferdium-app-302d595f7c289387e53a0ef7df4d574ed4e25d70.zip |
Transform to TS and refactored components w.r.t deletion if duplicated Input component (#729)
Diffstat (limited to 'src/components/settings/services/EditServiceForm.js')
-rw-r--r-- | src/components/settings/services/EditServiceForm.js | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/components/settings/services/EditServiceForm.js b/src/components/settings/services/EditServiceForm.js index 069b6643c..eeb9ef54d 100644 --- a/src/components/settings/services/EditServiceForm.js +++ b/src/components/settings/services/EditServiceForm.js | |||
@@ -11,7 +11,7 @@ import Recipe from '../../../models/Recipe'; | |||
11 | import Service from '../../../models/Service'; | 11 | import Service from '../../../models/Service'; |
12 | import Tabs from '../../ui/Tabs/Tabs'; | 12 | import Tabs from '../../ui/Tabs/Tabs'; |
13 | import TabItem from '../../ui/Tabs/TabItem'; | 13 | import TabItem from '../../ui/Tabs/TabItem'; |
14 | import Input from '../../ui/Input'; | 14 | import Input from '../../ui/input/index'; |
15 | import Toggle from '../../ui/Toggle'; | 15 | import Toggle from '../../ui/Toggle'; |
16 | import Slider from '../../ui/Slider'; | 16 | import Slider from '../../ui/Slider'; |
17 | import Button from '../../ui/button'; | 17 | import Button from '../../ui/button'; |
@@ -292,7 +292,7 @@ class EditServiceForm extends Component { | |||
292 | <div className="settings__body"> | 292 | <div className="settings__body"> |
293 | <form onSubmit={e => this.submit(e)} id="form"> | 293 | <form onSubmit={e => this.submit(e)} id="form"> |
294 | <div className="service-name"> | 294 | <div className="service-name"> |
295 | <Input field={form.$('name')} focus /> | 295 | <Input {...form.$('name').bind()} focus /> |
296 | </div> | 296 | </div> |
297 | {(recipe.hasTeamId || recipe.hasCustomUrl) && ( | 297 | {(recipe.hasTeamId || recipe.hasCustomUrl) && ( |
298 | <Tabs active={activeTabIndex}> | 298 | <Tabs active={activeTabIndex}> |
@@ -314,7 +314,7 @@ class EditServiceForm extends Component { | |||
314 | )} | 314 | )} |
315 | {recipe.hasCustomUrl && ( | 315 | {recipe.hasCustomUrl && ( |
316 | <TabItem title={intl.formatMessage(messages.tabOnPremise)}> | 316 | <TabItem title={intl.formatMessage(messages.tabOnPremise)}> |
317 | <Input field={form.$('customUrl')} /> | 317 | <Input {...form.$('customUrl').bind()} /> |
318 | {form.error === 'url-validation-error' && ( | 318 | {form.error === 'url-validation-error' && ( |
319 | <p className="franz-form__error"> | 319 | <p className="franz-form__error"> |
320 | {intl.formatMessage(messages.customUrlValidationError, { | 320 | {intl.formatMessage(messages.customUrlValidationError, { |
@@ -435,17 +435,17 @@ class EditServiceForm extends Component { | |||
435 | <div className="grid"> | 435 | <div className="grid"> |
436 | <div className="grid__row"> | 436 | <div className="grid__row"> |
437 | <Input | 437 | <Input |
438 | field={form.$('proxy.host')} | 438 | {...form.$('proxy.host').bind()} |
439 | className="proxyHost" | 439 | className="proxyHost" |
440 | /> | 440 | /> |
441 | <Input field={form.$('proxy.port')} /> | 441 | <Input {...form.$('proxy.port').bind()} /> |
442 | </div> | 442 | </div> |
443 | </div> | 443 | </div> |
444 | <div className="grid"> | 444 | <div className="grid"> |
445 | <div className="grid__row"> | 445 | <div className="grid__row"> |
446 | <Input field={form.$('proxy.user')} /> | 446 | <Input {...form.$('proxy.user').bind()} /> |
447 | <Input | 447 | <Input |
448 | field={form.$('proxy.password')} | 448 | {...form.$('proxy.password').bind()} |
449 | showPasswordToggle | 449 | showPasswordToggle |
450 | /> | 450 | /> |
451 | </div> | 451 | </div> |
@@ -464,7 +464,7 @@ class EditServiceForm extends Component { | |||
464 | )} | 464 | )} |
465 | 465 | ||
466 | <div className="user-agent"> | 466 | <div className="user-agent"> |
467 | <Input field={form.$('userAgentPref')} /> | 467 | <Input {...form.$('userAgentPref').bind()} /> |
468 | <p className="settings__help"> | 468 | <p className="settings__help"> |
469 | {intl.formatMessage(globalMessages.userAgentHelp)} | 469 | {intl.formatMessage(globalMessages.userAgentHelp)} |
470 | </p> | 470 | </p> |