Skip to content

Commit

Permalink
refactor: remove unnecessary forwardRef on sticker
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderl19 committed Oct 29, 2023
1 parent 3611a3d commit 099765b
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@ interface HeartStickerProps {
position?: "top-left" | "top-right" | "bottom-left" | "bottom-right";
}

const HeartSticker = React.forwardRef<
React.ElementRef<typeof BaseSticker>,
HeartStickerProps
>(({ ...props }, ref) => (
const HeartSticker: React.FC<HeartStickerProps> = (props) => (
<BaseSticker
imageSrc={HeartEmoji.src}
alt="heart emoji sticker"
Expand All @@ -20,7 +17,6 @@ const HeartSticker = React.forwardRef<
{...fastShake}
{...props}
/>
));
HeartSticker.displayName = "HeartSticker";
);

export default HeartSticker;

0 comments on commit 099765b

Please sign in to comment.