Skip to content

Commit

Permalink
disable gcp (#4566)
Browse files Browse the repository at this point in the history
  • Loading branch information
Feroze Mohideen authored Apr 21, 2024
1 parent ab72776 commit 805f4ca
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,23 @@ const CloudProviderSelect: React.FC<Props> = ({ onComplete }) => {
/>
<StyledProvisionerFlow>
<BlockList>
{[CloudProviderAWS, CloudProviderGCP, CloudProviderAzure].map(
{[CloudProviderAWS, CloudProviderAzure, CloudProviderGCP].map(
(provider: ClientCloudProvider, i: number) => {
const disabled = provider === CloudProviderGCP;
return (
<Block
key={i}
onClick={() => {
if (disabled) {
return;
}
if (user?.isPorterUser) {
onComplete(provider);
} else {
setCloudProvider(provider);
}
}}
disabled={disabled}
>
<Icon src={provider.icon} />
<BlockTitle>{provider.name}</BlockTitle>
Expand All @@ -67,7 +72,8 @@ const CloudProviderSelect: React.FC<Props> = ({ onComplete }) => {
</Text>
<Spacer y={0.5} />
<Text color={"helper"}>
Get started on the Porter Cloud and eject to your own cloud account later.
Get started on the Porter Cloud and eject to your own cloud account
later.
</Text>
<Spacer y={1} />
<Link to="https://cloud.porter.run">
Expand Down

0 comments on commit 805f4ca

Please sign in to comment.