@@ -19,8 +19,9 @@ import { Button } from 'components/redpanda-ui/components/button';
1919import { Card , CardContent , CardHeader , CardTitle } from 'components/redpanda-ui/components/card' ;
2020import { Field , FieldDescription , FieldError , FieldLabel } from 'components/redpanda-ui/components/field' ;
2121import { Input } from 'components/redpanda-ui/components/input' ;
22+ import { Spinner } from 'components/redpanda-ui/components/spinner' ;
2223import { Text } from 'components/redpanda-ui/components/typography' ;
23- import { Check , Key , Loader2 , Plus , X } from 'lucide-react' ;
24+ import { Check , Key , Plus , X } from 'lucide-react' ;
2425import { CreateSecretRequestSchema } from 'protogen/redpanda/api/console/v1alpha1/secret_pb' ;
2526import {
2627 CreateSecretRequestSchema as CreateSecretRequestSchemaDataPlane ,
@@ -265,7 +266,7 @@ export const QuickAddSecrets: React.FC<QuickAddSecretsProps> = ({
265266
266267 const requiredSecretsForm = (
267268 < >
268- < Alert variant = "warning " >
269+ < Alert variant = "destructive " >
269270 < AlertTitle > Required secrets are missing</ AlertTitle >
270271 < AlertDescription >
271272 The tool requires secrets to function properly. Create them below before proceeding.
@@ -299,7 +300,7 @@ export const QuickAddSecrets: React.FC<QuickAddSecretsProps> = ({
299300 < Button className = "w-full" disabled = { form . formState . isSubmitting } type = "submit" variant = "primary" >
300301 { form . formState . isSubmitting ? (
301302 < div className = "flex items-center gap-2" >
302- < Loader2 className = "h-4 w-4 animate-spin" />
303+ < Spinner />
303304 < Text as = "span" > Creating...</ Text >
304305 </ div >
305306 ) : (
@@ -318,20 +319,16 @@ export const QuickAddSecrets: React.FC<QuickAddSecretsProps> = ({
318319 < >
319320 { /* Display newly created secrets */ }
320321 { newlyCreatedSecrets . length > 0 && (
321- < div className = "space-y-2 ">
322- < Text className = "font-medium text-muted-foreground text-sm" > Created secrets</ Text >
323- < div className = "flex flex-col gap-1.5" >
322+ < Alert icon = { < Check /> } variant = "success ">
323+ < AlertTitle > Created secrets</ AlertTitle >
324+ < AlertDescription >
324325 { newlyCreatedSecrets . map ( ( secretName ) => (
325- < div
326- className = "flex items-center gap-2 rounded-md border border-green-600/30 bg-green-600/5 px-3 py-2"
327- key = { secretName }
328- >
329- < Check className = "h-4 w-4 shrink-0 text-green-600" />
330- < Text className = "font-mono text-sm" > { secretName } </ Text >
331- </ div >
326+ < Text className = "font-mono" key = { secretName } variant = "bodyMedium" >
327+ { secretName }
328+ </ Text >
332329 ) ) }
333- </ div >
334- </ div >
330+ </ AlertDescription >
331+ </ Alert >
335332 ) }
336333
337334 { /* Form to add new secrets */ }
@@ -385,7 +382,7 @@ export const QuickAddSecrets: React.FC<QuickAddSecretsProps> = ({
385382 < Button className = "w-full" disabled = { newSecretForm . formState . isSubmitting } type = "submit" variant = "primary" >
386383 { newSecretForm . formState . isSubmitting ? (
387384 < div className = "flex items-center gap-2" >
388- < Loader2 className = "h-4 w-4 animate-spin" />
385+ < Spinner />
389386 < Text as = "span" > Creating...</ Text >
390387 </ div >
391388 ) : (
@@ -423,9 +420,7 @@ export const QuickAddSecrets: React.FC<QuickAddSecretsProps> = ({
423420 < div className = { hasRequiredSection ? 'space-y-3 border-t pt-4' : 'space-y-4' } >
424421 { hasRequiredSection && (
425422 < div className = "flex items-center justify-between gap-2" >
426- < Text className = "font-medium" variant = "bodyStrongMedium" >
427- Add a custom secret
428- </ Text >
423+ < Text variant = "bodyStrongMedium" > Add a custom secret</ Text >
429424 < Button
430425 aria-label = "Hide custom secret form"
431426 icon = { < X /> }
0 commit comments