Skip to content

Commit

Permalink
fix: fix native Skeleton.Button crash (#921)
Browse files Browse the repository at this point in the history
  • Loading branch information
YimJiYoung authored Dec 14, 2023
1 parent 9e9b853 commit 747150c
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Box, transformResponsiveValue, useCurrentTheme } from '@vibrant-ui/core';
import { convertRemToPixels } from '@vibrant-ui/utils';
import { withSkeletonButtonVariation } from './SkeletonButtonProps';

export const SkeletonButton = withSkeletonButtonVariation(({ typography, py, width }) => {
Expand All @@ -8,7 +9,9 @@ export const SkeletonButton = withSkeletonButtonVariation(({ typography, py, wid

return (
<Box backgroundColor="disable" rounded="sm" py={py} width={width}>
<Box height={transformResponsiveValue(typography, value => themeTypography[value].lineHeight)} />
<Box
height={transformResponsiveValue(typography, value => convertRemToPixels(themeTypography[value].lineHeight))}
/>
</Box>
);
});

1 comment on commit 747150c

@vercel
Copy link

@vercel vercel bot commented on 747150c Dec 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@YimJiYoung is attempting to deploy a commit to the Class101 Team on Vercel.

To accomplish this, @YimJiYoung needs to request access to the Team.

Afterwards, an owner of the Team is required to accept their membership request.

If you're already a member of the respective Vercel Team, make sure that your Personal Vercel Account is connected to your GitHub account.

Please sign in to comment.