From e31ccda5bcfdac60d8c788de6930d86f7e161b14 Mon Sep 17 00:00:00 2001 From: CheeseB <2489ckckck@naver.com> Date: Wed, 27 Mar 2024 22:43:58 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20Operation=20Button=20=EC=98=A4=EB=A5=98?= =?UTF-8?q?=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/commons/buttons/OperationButton.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/components/commons/buttons/OperationButton.tsx b/src/components/commons/buttons/OperationButton.tsx index 9a3c992a..75035d02 100644 --- a/src/components/commons/buttons/OperationButton.tsx +++ b/src/components/commons/buttons/OperationButton.tsx @@ -18,7 +18,13 @@ type OperationButtonProps = { export const OperationButton = ({ type, isDisabled, onClick }: OperationButtonProps) => { const buttonType = type === 'add' && isDisabled ? 'disabled' : type; - const { url, alt } = SVGS.button[buttonType]; + let icon = SVGS.button.disabled; + + if (buttonType !== 'disabled') { + icon = SVGS.button[buttonType].active; + } + + const { url, alt } = icon; return (