diff options
| author | Haishan <[email protected]> | 2019-12-27 13:12:49 +0800 |
|---|---|---|
| committer | Haishan <[email protected]> | 2019-12-27 16:29:46 +0800 |
| commit | aca578cb9dfdaed33f91c62ffdf3ef1a456c6a72 (patch) | |
| tree | 0db1a3f2646ec28841ba59d00e89f156432a9afb /src/components/ProxyProvider.js | |
| parent | 45c3c7b8b4793ca3b6cd8366baaf035346a6d745 (diff) | |
refactor: abstract ButtonWithIcon as a button enhancer
Diffstat (limited to 'src/components/ProxyProvider.js')
| -rw-r--r-- | src/components/ProxyProvider.js | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/components/ProxyProvider.js b/src/components/ProxyProvider.js index 3a0b2ef..9561907 100644 --- a/src/components/ProxyProvider.js +++ b/src/components/ProxyProvider.js @@ -10,7 +10,7 @@ import { getClashAPIConfig } from '../ducks/app'; import { connect } from './StateProvider'; import { SectionNameType } from './shared/Basic'; import { ProxyList, ProxyListSummaryView } from './ProxyGroup'; -import { ButtonWithIcon, ButtonPlain } from './Button'; +import Button, { ButtonPlain } from './Button'; import { updateProviderByName, @@ -69,12 +69,8 @@ function ProxyProvider({ item, dispatch }: Props) { <Collapsible2 isOpen={isCollapsibleOpen}> <ProxyList all={item.proxies} /> <div className={s.actionFooter}> - <ButtonWithIcon - text="Update" - icon={<Refresh />} - onClick={updateProvider} - /> - <ButtonWithIcon + <Button text="Update" start={<Refresh />} onClick={updateProvider} /> + <Button text="Health Check" icon={<Zap size={16} />} onClick={healthcheckProvider} |
