From 0d2b093dbd42e2d3d3e05e4f2abb32c90376791f Mon Sep 17 00:00:00 2001 From: Abdhesh Nayak Date: Sun, 10 Mar 2024 14:07:07 +0530 Subject: [PATCH] :bug: Fixed issue --- .../cloud-providers/provider-resources.tsx | 59 +++++++++++-------- 1 file changed, 35 insertions(+), 24 deletions(-) diff --git a/web/src/apps/console/routes/_main+/$account+/settings+/cloud-providers/provider-resources.tsx b/web/src/apps/console/routes/_main+/$account+/settings+/cloud-providers/provider-resources.tsx index 70ee6bcf0..581392994 100644 --- a/web/src/apps/console/routes/_main+/$account+/settings+/cloud-providers/provider-resources.tsx +++ b/web/src/apps/console/routes/_main+/$account+/settings+/cloud-providers/provider-resources.tsx @@ -36,6 +36,7 @@ import CodeView from '~/console/components/code-view'; import Yup from '~/root/lib/server/helpers/yup'; import { PasswordInput } from '~/components/atoms/input'; import useForm from '~/root/lib/client/hooks/use-form'; +import { Badge } from '~/components/atoms/badge'; import HandleProvider from './handle-provider'; const RESOURCE_NAME = 'cloud provider'; @@ -153,31 +154,41 @@ const AwsValidationPopup = ({ {/* Account ID */} {/* {item.aws?.awsAccountId} */} {/* */} -
- + {!data?.result && ( +
+ + + + visit the link above and click on the button to validate your + AWS account, or +
+ setIsLoading(false); + }} + content="click here" + /> + +
+ )} + + {data?.result && ( +
+ }> + Your Credential is valid + +
+ )} {!data?.result && ( <>