Skip to content

Commit

Permalink
remove adobe from designkits.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelsycamore committed Jan 6, 2025
1 parent d85b707 commit 8ca2c46
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions docs/src/components/home/DesignKits.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const Anchor = styled('a')(({ theme }) => [

const DesignToolLink = React.forwardRef<
HTMLAnchorElement,
React.PropsWithChildren<{ brand: 'figma' | 'sketch' | 'adobexd' }>
React.PropsWithChildren<{ brand: 'figma' | 'sketch' }>
>(function DesignToolLink(props, ref) {
const { brand, ...other } = props;
return (
Expand All @@ -79,8 +79,6 @@ const DesignToolLink = React.forwardRef<
'https://mui.com/store/items/figma-react/?utm_source=marketing&utm_medium=referral&utm_campaign=home-products',
sketch:
'https://mui.com/store/items/sketch-react/?utm_source=marketing&utm_medium=referral&utm_campaign=home-products',
adobexd:
'https://mui.com/store/items/adobe-xd-react/?utm_source=marketing&utm_medium=referral&utm_campaign=home-products',
}[brand]
}
target="_blank"
Expand All @@ -91,7 +89,7 @@ const DesignToolLink = React.forwardRef<

const DesignToolLogo = React.forwardRef<
HTMLImageElement,
{ brand: 'figma' | 'sketch' | 'adobexd' } & AvatarProps
{ brand: 'figma' | 'sketch' } & AvatarProps
>(function DesignToolLogo({ brand, ...props }, ref) {
return (
<Box
Expand Down Expand Up @@ -197,7 +195,7 @@ export function DesignKitImagesSet2({
}

export function DesignKitTools({ disableLink, ...props }: { disableLink?: boolean } & BoxProps) {
function renderTool(brand: 'figma' | 'sketch' | 'adobexd') {
function renderTool(brand: 'figma' | 'sketch' ) {
if (disableLink) {
return <DesignToolLogo brand={brand} />;
}
Expand Down Expand Up @@ -229,7 +227,6 @@ export function DesignKitTools({ disableLink, ...props }: { disableLink?: boolea
>
<FadeDelay delay={200}>{renderTool('figma')}</FadeDelay>
<FadeDelay delay={400}>{renderTool('sketch')}</FadeDelay>
<FadeDelay delay={600}>{renderTool('adobexd')}</FadeDelay>
</Box>
);
}
Expand Down

0 comments on commit 8ca2c46

Please sign in to comment.