Skip to content

Commit

Permalink
feat: move clouds out of beta (#528)
Browse files Browse the repository at this point in the history
  • Loading branch information
CristhianF7 authored Jan 22, 2025
1 parent 0aeeb35 commit 358a9c2
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions components/CloudProviderCard/CloudProviderCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import Image from 'next/image';
import StarRateRoundedIcon from '@mui/icons-material/StarRateRounded';

import { CardProps } from '../Card/Card';
import Tag from '../Tag/Tag';

import { CardContainer } from './CloudProviderCard.styled';

Expand Down Expand Up @@ -39,15 +38,13 @@ const PROVIDER_OPTIONS: Record<
learnMoreLink: 'https://cloud.linode.com',
height: 40,
width: 92,
beta: true,
},
[InstallationType.AZURE]: {
logoSrc: azureLogo,
label: 'Azure',
description: 'Microsoft Azure is a cloud computing service operated by Microsoft.',
height: 40,
width: 117,
beta: true,
},
[InstallationType.LOCAL]: {
logoSrc: k3dLogo,
Expand Down Expand Up @@ -86,7 +83,6 @@ const PROVIDER_OPTIONS: Record<

height: 50,
width: 180,
beta: false,
},
[InstallationType.VULTR]: {
logoSrc: vultrLogo,
Expand All @@ -96,7 +92,6 @@ const PROVIDER_OPTIONS: Record<
learnMoreLink: 'https://www.vultr.com/',
height: 40,
width: 168,
beta: false,
},
[InstallationType.GOOGLE]: {
logoSrc: googleCloudLogo,
Expand All @@ -106,7 +101,6 @@ const PROVIDER_OPTIONS: Record<
learnMoreLink: 'https://cloud.google.com/',
height: 32,
width: 180,
beta: false,
},
};

Expand All @@ -120,7 +114,7 @@ const CloudProviderCard: FunctionComponent<CloudProviderCardProps> = ({
withHoverEffect = true,
...rest
}) => {
const { beta, height, isFeatured, logoSrc, width } = PROVIDER_OPTIONS[option] || {};
const { height, isFeatured, logoSrc, width } = PROVIDER_OPTIONS[option] || {};
return (
<CardContainer {...rest} withHoverEffect={withHoverEffect} data-test-id={`${option}-button`}>
{isFeatured && (
Expand All @@ -131,7 +125,6 @@ const CloudProviderCard: FunctionComponent<CloudProviderCardProps> = ({
/>
)}
<Image src={logoSrc} alt="logo" width={width} height={height} />
{beta && <Tag text="Beta" bgColor="light-orange" />}
</CardContainer>
);
};
Expand Down

0 comments on commit 358a9c2

Please sign in to comment.