From 6575e734392d63d959dacbb3b7ad733285828475 Mon Sep 17 00:00:00 2001 From: Zephyruso <127948745+Zephyruso@users.noreply.github.com> Date: Tue, 5 Sep 2023 20:25:49 +0800 Subject: [PATCH] feat: icon success color when updating --- src/pages/Proxies.tsx | 11 +++++------ src/pages/ProxyProvider.tsx | 17 +++++++++-------- src/pages/Rules.tsx | 7 +++++-- 3 files changed, 19 insertions(+), 16 deletions(-) diff --git a/src/pages/Proxies.tsx b/src/pages/Proxies.tsx index dc5ae09..dc85816 100644 --- a/src/pages/Proxies.tsx +++ b/src/pages/Proxies.tsx @@ -64,7 +64,8 @@ export default () => { > @@ -72,7 +73,7 @@ export default () => {
{proxy.type} {proxy.now?.length > 0 && ` :: ${proxy.now}`}
- + { return ( - setCollapsedMap(`group-${proxy.name}`, val) - } + onCollapse={(val) => setCollapsedMap(proxy.name, val)} /> ) })} diff --git a/src/pages/ProxyProvider.tsx b/src/pages/ProxyProvider.tsx index 58fb7d8..b4c3303 100644 --- a/src/pages/ProxyProvider.tsx +++ b/src/pages/ProxyProvider.tsx @@ -63,7 +63,9 @@ export default () => { onClick={(e) => onUpdateAllProviderClick(e)} > @@ -88,7 +90,8 @@ export default () => { > @@ -100,7 +103,7 @@ export default () => { @@ -113,7 +116,7 @@ export default () => { {proxyProvider.vehicleType} :: {t('updated')}{' '} {formatTimeFromNow(proxyProvider.updatedAt)} - + @@ -123,12 +126,10 @@ export default () => { return ( - setCollapsedMap(`provider-${proxyProvider.name}`, val) - } + onCollapse={(val) => setCollapsedMap(proxyProvider.name, val)} /> ) })} diff --git a/src/pages/Rules.tsx b/src/pages/Rules.tsx index 0c94313..aaad602 100644 --- a/src/pages/Rules.tsx +++ b/src/pages/Rules.tsx @@ -74,7 +74,9 @@ export default () => { onClick={(e) => onUpdateAllProviderClick(e)} > @@ -95,7 +97,8 @@ export default () => { >