From 83601534da3526999885f0c512bd8aec23bb8b63 Mon Sep 17 00:00:00 2001 From: steven-yn Date: Sat, 11 Nov 2023 04:17:17 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20icon=20=EC=BB=B4=ED=8F=AC=EB=84=8C?= =?UTF-8?q?=ED=8A=B8=20=EC=9D=B4=EB=B2=A4=ED=8A=B8=20=ED=95=B8=EB=93=A4?= =?UTF-8?q?=EB=9F=AC=20=EC=84=9C=EB=B2=84=EC=BB=B4=ED=8F=AC=EB=84=8C?= =?UTF-8?q?=ED=8A=B8=20=ED=98=B8=ED=99=98=EC=84=B1=20=EB=AC=B8=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/composable/Icon/Icon.tsx | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/composable/Icon/Icon.tsx b/src/composable/Icon/Icon.tsx index a9ce70c..335c1cd 100644 --- a/src/composable/Icon/Icon.tsx +++ b/src/composable/Icon/Icon.tsx @@ -1,5 +1,5 @@ import Image, { ImageProps } from 'next/image'; -import React, { useRef } from 'react'; +import React from 'react'; import { ASSET_ENDPOINT } from '@/const/endpoint'; import iconResourceSrcFormat from '@/utils/string/iconResourceSrcFormat'; @@ -17,8 +17,6 @@ const Icon = ({ format, ...props }: Props) => { - const imageRef = useRef(null); - const resource = iconResourceSrcFormat({ company, color, @@ -31,12 +29,11 @@ const Icon = ({ return ( { - const target = e.target as HTMLImageElement; - target.style.opacity = '0'; - }} + // onError={(e) => { + // const target = e.target as HTMLImageElement; + // target.style.opacity = '0'; + // }} alt={company} /> );