From 125733468e1279884683036982dd04315b52adbb Mon Sep 17 00:00:00 2001 From: typist Date: Thu, 30 Oct 2025 09:11:15 +0800 Subject: [PATCH] refactor: enhance currency badge interaction and styling - Updated the Badge component to improve user interaction with currency removal. - Enhanced styling for better visual feedback on hover and click actions. - Simplified the removal button functionality by integrating it into the Badge component. --- src/components/tool/currency.tsx | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/src/components/tool/currency.tsx b/src/components/tool/currency.tsx index 1376f6f..b447d6f 100644 --- a/src/components/tool/currency.tsx +++ b/src/components/tool/currency.tsx @@ -376,21 +376,22 @@ const Tool: FC = () => { { + if (!isRequired) { + removeCurrency(code); + } + }} > - {currency?.symbol} {code} + + {currency?.symbol} {code} + {!isRequired && ( - + )} );