Skip to content

Commit 2f385e7

Browse files
committed
fix: resolve external link icon alignment issue (#16909)
1 parent acd4e5d commit 2f385e7

File tree

2 files changed

+4
-11
lines changed

2 files changed

+4
-11
lines changed

airbyte-webapp/src/components/ui/Link/ExternalLink.tsx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ import { PropsWithChildren } from "react";
22

33
import { getLinkClassNames } from "./getLinkClassNames";
44
import { LinkProps } from "./Link";
5-
import { Box } from "../Box";
6-
import { Icon } from "../Icon";
75

86
interface ExternalLinkProps extends LinkProps {
97
href: string;
@@ -28,11 +26,6 @@ export const ExternalLink: React.FC<PropsWithChildren<ExternalLinkProps>> = ({
2826
target={opensInNewTab ? "_blank" : undefined}
2927
>
3028
{children}
31-
{withIcon && (
32-
<Box ml="sm" as="span">
33-
<Icon type="share" size="sm" />
34-
</Box>
35-
)}
3629
</a>
3730
);
3831
};

airbyte-webapp/src/packages/cloud/views/billing/OrganizationBillingPage/SubscribeCards/SubscribeCards.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,11 @@ export const SubscribeCards: React.FC = () => {
125125
<TeamsCard />
126126
</FlexContainer>
127127
<FlexItem>
128-
<Text size="lg">
129-
<ExternalLink href={links.pricingPage} opensInNewTab withIcon>
128+
<ExternalLink href={links.pricingPage} opensInNewTab>
129+
<Button variant="clear" size="sm" icon="share" iconPosition="right" iconSize="sm">
130130
<FormattedMessage id="settings.organization.billing.pricingFeatureComparison" />
131-
</ExternalLink>
132-
</Text>
131+
</Button>
132+
</ExternalLink>
133133
</FlexItem>
134134
</FlexContainer>
135135
</Box>

0 commit comments

Comments
 (0)