Skip to content

Commit

Permalink
fix: 🐛 correct build error
Browse files Browse the repository at this point in the history
  • Loading branch information
streamich committed Nov 14, 2024
1 parent 56a7fe0 commit 7e90fc6
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/__story__/PreviewSet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,18 @@ const PreviewIcon: React.FC<Icon & {size?: number; enqueueSnackbar: (text: any)
);
};

const H = HoverSensor as any;

return (
<HoverSensor>
{({isHover}) => (
<H>
{({isHover}: {isHover: boolean}) => (
<div style={{...styles.block, border: `1px solid rgba(0,0,0,.${isHover ? 2 : 1})`}} onClick={onClick}>
<Tooltip title={icon} placement="top">
<img style={styles.svg} src={getUrl({set: set as any, icon: icon as any})} />
</Tooltip>
</div>
)}
</HoverSensor>
</H>
);
};

Expand Down

0 comments on commit 7e90fc6

Please sign in to comment.