From 1c50345035336e853da57123637a1f1719956d45 Mon Sep 17 00:00:00 2001 From: Sheen Capadngan Date: Wed, 19 Nov 2025 03:23:30 +0800 Subject: [PATCH] misc: removed export --- .../components/PamAccountForm/SshAccountForm.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/src/pages/pam/PamAccountsPage/components/PamAccountForm/SshAccountForm.tsx b/frontend/src/pages/pam/PamAccountsPage/components/PamAccountForm/SshAccountForm.tsx index fc8ea7acb..305d8a2fd 100644 --- a/frontend/src/pages/pam/PamAccountsPage/components/PamAccountForm/SshAccountForm.tsx +++ b/frontend/src/pages/pam/PamAccountsPage/components/PamAccountForm/SshAccountForm.tsx @@ -25,24 +25,24 @@ type Props = { onSubmit: (formData: FormData) => Promise; }; -export const SSHPasswordCredentialsSchema = z.object({ +const SSHPasswordCredentialsSchema = z.object({ authMethod: z.literal(SSHAuthMethod.Password), username: z.string().trim().min(1, "Username is required"), password: z.string().trim().min(1, "Password is required") }); -export const SSHPublicKeyCredentialsSchema = z.object({ +const SSHPublicKeyCredentialsSchema = z.object({ authMethod: z.literal(SSHAuthMethod.PublicKey), username: z.string().trim().min(1, "Username is required"), privateKey: z.string().trim().min(1, "Private key is required") }); -export const SSHCertificateCredentialsSchema = z.object({ +const SSHCertificateCredentialsSchema = z.object({ authMethod: z.literal(SSHAuthMethod.Certificate), username: z.string().trim().min(1, "Username is required") }); -export const BaseSshAccountSchema = z.discriminatedUnion("authMethod", [ +const BaseSshAccountSchema = z.discriminatedUnion("authMethod", [ SSHPasswordCredentialsSchema, SSHPublicKeyCredentialsSchema, SSHCertificateCredentialsSchema