From 099765bbdae188bcc5a0cfa019b58311dcb97635 Mon Sep 17 00:00:00 2001 From: Alexander Liu Date: Sun, 22 Oct 2023 04:00:00 -0700 Subject: [PATCH] refactor: remove unnecessary forwardRef on sticker --- .../Sticker/Stickers/HeartSticker/HeartSticker.tsx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/apps/site/src/components/Sticker/Stickers/HeartSticker/HeartSticker.tsx b/apps/site/src/components/Sticker/Stickers/HeartSticker/HeartSticker.tsx index 2a544d68..2eebefe0 100644 --- a/apps/site/src/components/Sticker/Stickers/HeartSticker/HeartSticker.tsx +++ b/apps/site/src/components/Sticker/Stickers/HeartSticker/HeartSticker.tsx @@ -8,10 +8,7 @@ interface HeartStickerProps { position?: "top-left" | "top-right" | "bottom-left" | "bottom-right"; } -const HeartSticker = React.forwardRef< - React.ElementRef, - HeartStickerProps ->(({ ...props }, ref) => ( +const HeartSticker: React.FC = (props) => ( -)); -HeartSticker.displayName = "HeartSticker"; +); export default HeartSticker;