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/Connections.js | |
| parent | 45c3c7b8b4793ca3b6cd8366baaf035346a6d745 (diff) | |
refactor: abstract ButtonWithIcon as a button enhancer
Diffstat (limited to 'src/components/Connections.js')
| -rw-r--r-- | src/components/Connections.js | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/components/Connections.js b/src/components/Connections.js index c07de0a..b2617a6 100644 --- a/src/components/Connections.js +++ b/src/components/Connections.js @@ -6,7 +6,7 @@ import { useStoreState } from '../misc/store'; import { getClashAPIConfig } from '../ducks/app'; import { X as IconClose } from 'react-feather'; import SvgYacd from './SvgYacd'; -import { ButtonWithIcon } from './Button'; +import Button from './Button'; import ModalCloseAllConnections from './ModalCloseAllConnections'; import * as connAPI from '../api/connections'; @@ -89,11 +89,7 @@ function Conn() { </div> </div> <div className="fabgrp"> - <ButtonWithIcon - text="Close" - icon={iconClose} - onClick={openCloseAllModal} - /> + <Button text="Close" start={iconClose} onClick={openCloseAllModal} /> </div> <ModalCloseAllConnections isOpen={isCloseAllModalOpen} |
