From 9d367d1ead94891a050e6c9faf77fd26a0fa86ae Mon Sep 17 00:00:00 2001 From: sdess09 <37374498+sdess09@users.noreply.github.com> Date: Mon, 9 Oct 2023 12:31:53 -0400 Subject: [PATCH] Hotfix multi-cluster (#3770) --- dashboard/src/components/ProvisionerFlow.tsx | 5 +- .../home/sidebar/ProvisionClusterModal.tsx | 52 +++++++++++-------- 2 files changed, 34 insertions(+), 23 deletions(-) diff --git a/dashboard/src/components/ProvisionerFlow.tsx b/dashboard/src/components/ProvisionerFlow.tsx index 5fbfb762a4..c489607c08 100644 --- a/dashboard/src/components/ProvisionerFlow.tsx +++ b/dashboard/src/components/ProvisionerFlow.tsx @@ -66,8 +66,9 @@ const ProvisionerFlow: React.FC = ({ }) => { { if ( diff --git a/dashboard/src/main/home/sidebar/ProvisionClusterModal.tsx b/dashboard/src/main/home/sidebar/ProvisionClusterModal.tsx index 7d098d4859..3a3b0013d5 100644 --- a/dashboard/src/main/home/sidebar/ProvisionClusterModal.tsx +++ b/dashboard/src/main/home/sidebar/ProvisionClusterModal.tsx @@ -28,36 +28,46 @@ const ProvisionClusterModal: React.FC = ({ const [targetArn, setTargetARN] = useState("") return ( - + Provision A New Cluster - {currentCredential && targetArn ? (<> - - - {/* setCurrentStep("credentials")} - credentialId={String(currentCredential.aws_integration_id)} - provider={"aws"} - /> */} - ) : ( - < AWSCredentialsList - setTargetARN={setTargetARN} - selectCredential={ - (i) => - setCurrentCredential({ + + {currentCredential && targetArn ? ( + <> + + {/* Uncommented for future use if needed. + setCurrentStep("credentials")} + credentialId={String(currentCredential.aws_integration_id)} + provider={"aws"} + /> */} + + ) : ( + setCurrentCredential({ aws_integration_id: i, }) - } - />) - } + } + /> + )} + ) } export default ProvisionClusterModal; +const ScrollableContent = styled.div` + width: 100%; + max-height: 700px; // or whatever height you prefer + overflow-y: auto; + padding: 10px; + position: relative; +`; \ No newline at end of file