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/Proxies.js | |
| parent | 45c3c7b8b4793ca3b6cd8366baaf035346a6d745 (diff) | |
refactor: abstract ButtonWithIcon as a button enhancer
Diffstat (limited to 'src/components/Proxies.js')
| -rw-r--r-- | src/components/Proxies.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/components/Proxies.js b/src/components/Proxies.js index eb0f78b..01be151 100644 --- a/src/components/Proxies.js +++ b/src/components/Proxies.js @@ -5,7 +5,7 @@ import { connect } from './StateProvider'; import ContentHeader from './ContentHeader'; import ProxyGroup from './ProxyGroup'; -import { ButtonWithIcon } from './Button'; +import Button from './Button'; import { Zap } from 'react-feather'; import ProxyProviderList from './ProxyProviderList'; @@ -45,9 +45,9 @@ function Proxies({ dispatch, groupNames, proxies, delay, proxyProviders }) { <ContentHeader title="Proxies" /> <div> <div className="fabgrp"> - <ButtonWithIcon + <Button text="Test Latency" - icon={icon} + start={icon} onClick={requestDelayAllFn} /> </div> |
