Skip to content

Commit 1ad9b14

Browse files
committed
formatting
1 parent 6380046 commit 1ad9b14

File tree

1 file changed

+17
-5
lines changed

1 file changed

+17
-5
lines changed

src/components/cluster/ClusterForm.tsx

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -687,8 +687,8 @@ export default function ClusterForm({
687687
? id !== 1
688688
? DEFAULT_SECRET_PLACEHOLDER
689689
: config?.bearer_token
690-
? config.bearer_token
691-
: ''
690+
? config.bearer_token
691+
: ''
692692
: state.token.value
693693
}
694694
onChange={handleOnChange}
@@ -710,7 +710,9 @@ export default function ClusterForm({
710710
<>
711711
<hr />
712712
<div className="dc__position-rel dc__hover mb-20">
713-
<span className="form__input-header pb-20">How do you want Devtron to connect with this cluster?</span>
713+
<span className="form__input-header pb-20">
714+
How do you want Devtron to connect with this cluster?
715+
</span>
714716
<span className="pb-20">
715717
<KubectlConnectionRadio
716718
toConnectViaProxy={isConnectedViaProxyTemp}
@@ -719,8 +721,18 @@ export default function ClusterForm({
719721
changeSSHAuthenticationType={changeSSHAuthenticationType}
720722
proxyUrl={state.proxyUrl}
721723
sshTunnelUser={state.sshTunnelUser}
722-
sshTunnelPassword={(SSHConnectionType === SSHAuthenticationType.Password || SSHConnectionType === SSHAuthenticationType.Password_And_SSH_Private_Key) ? state.sshTunnelPassword : {value: '', error: ''}}
723-
sshTunnelPrivateKey={(SSHConnectionType === SSHAuthenticationType.SSH_Private_Key || SSHConnectionType === SSHAuthenticationType.Password_And_SSH_Private_Key) ? state.sshTunnelPrivateKey : {value: '', error: ''}}
724+
sshTunnelPassword={
725+
SSHConnectionType === SSHAuthenticationType.Password ||
726+
SSHConnectionType === SSHAuthenticationType.Password_And_SSH_Private_Key
727+
? state.sshTunnelPassword
728+
: { value: '', error: '' }
729+
}
730+
sshTunnelPrivateKey={
731+
SSHConnectionType === SSHAuthenticationType.SSH_Private_Key ||
732+
SSHConnectionType === SSHAuthenticationType.Password_And_SSH_Private_Key
733+
? state.sshTunnelPrivateKey
734+
: { value: '', error: '' }
735+
}
724736
sshTunnelUrl={state.sshTunnelUrl}
725737
handleOnChange={handleOnChange}
726738
/>

0 commit comments

Comments
 (0)