chore: make TS enums strictly PascalCase (#26875)

This commit is contained in:
Ville Brofeldt
2024-01-31 17:40:44 -08:00
committed by GitHub
parent 959a5a5ad6
commit 19f8405bc0
362 changed files with 2002 additions and 2032 deletions

View File

@@ -59,7 +59,7 @@ const SSHTunnelForm = ({
>;
setSSHTunnelLoginMethod: (method: AuthType) => void;
}) => {
const [usePassword, setUsePassword] = useState<AuthType>(AuthType.password);
const [usePassword, setUsePassword] = useState<AuthType>(AuthType.Password);
return (
<Form>
@@ -126,13 +126,13 @@ const SSHTunnelForm = ({
}}
>
<Radio
value={AuthType.password}
value={AuthType.Password}
data-test="ssh-tunnel-use_password-radio"
>
{t('Password')}
</Radio>
<Radio
value={AuthType.privateKey}
value={AuthType.PrivateKey}
data-test="ssh-tunnel-use_private_key-radio"
>
{t('Private Key & Password')}
@@ -142,7 +142,7 @@ const SSHTunnelForm = ({
</StyledDiv>
</Col>
</StyledRow>
{usePassword === AuthType.password && (
{usePassword === AuthType.Password && (
<StyledRow gutter={16}>
<Col xs={24}>
<StyledDiv>
@@ -172,7 +172,7 @@ const SSHTunnelForm = ({
</Col>
</StyledRow>
)}
{usePassword === AuthType.privateKey && (
{usePassword === AuthType.PrivateKey && (
<>
<StyledRow gutter={16}>
<Col xs={24}>