Skip to content

Commit

Permalink
fix: update collectible hover icon, closes #4971
Browse files Browse the repository at this point in the history
  • Loading branch information
pete-watters committed Jul 3, 2024
1 parent c1bbf89 commit 7839e90
Showing 1 changed file with 11 additions and 17 deletions.
28 changes: 11 additions & 17 deletions src/app/features/collectibles/components/collectible-hover.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { ReactNode } from 'react';

import { Box } from 'leather-styles/jsx';
import { Box, styled } from 'leather-styles/jsx';

import { ArrowUpIcon, IconButton } from '@leather.io/ui';
import { ExternalLinkIcon, IconButton } from '@leather.io/ui';

Check failure on line 5 in src/app/features/collectibles/components/collectible-hover.tsx

View workflow job for this annotation

GitHub Actions / typecheck

'IconButton' is declared but its value is never read.

interface CollectibleHoverProps {
collectibleTypeIcon?: ReactNode;
Expand Down Expand Up @@ -38,23 +38,14 @@ export function CollectibleHover({
{collectibleTypeIcon}
</Box>
{onClickCallToAction && (
<IconButton
<styled.button
height="32px"
width="32px"
_focus={{ outline: 'focus' }}
borderRadius="xs"
alignItems="center"
bg="ink.background-primary"
borderRadius="50%"
display="flex"
height="30px"
justifyContent="center"
icon={
<ArrowUpIcon
transform="rotate(45deg)"
borderRadius="50%"
width="30px"
height="30px"
_hover={{ bg: 'ink.component-background-hover' }}
/>
}
onClick={e => {
e.stopPropagation();
onClickCallToAction();
Expand All @@ -63,9 +54,12 @@ export function CollectibleHover({
right="12px"
top="12px"
type="button"
width="30px"
zIndex={999}
/>
>
<styled.div bg="ink.background-primary" borderRadius="xs" padding="space.01">
<ExternalLinkIcon _hover={{ bg: 'ink.component-background-hover' }} />
</styled.div>
</styled.button>
)}
</Box>
);
Expand Down

0 comments on commit 7839e90

Please sign in to comment.