diff options
| author | Haishan <[email protected]> | 2019-01-02 22:33:05 +0800 |
|---|---|---|
| committer | Haishan <[email protected]> | 2019-01-02 22:33:05 +0800 |
| commit | 761e25f1ea41195b4e58f9ad643a20acbc3f3cfe (patch) | |
| tree | b70d9d4c1e8832b7c7aca6e3312d1834b9fd03f2 /src/components/ProxyGroup.js | |
| parent | be029ded162f9bd88a81e9d8e03872f6facd4461 (diff) | |
style(proxies): tweak proxy hover style
Diffstat (limited to 'src/components/ProxyGroup.js')
| -rw-r--r-- | src/components/ProxyGroup.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/components/ProxyGroup.js b/src/components/ProxyGroup.js index e4ac8ac..35eb660 100644 --- a/src/components/ProxyGroup.js +++ b/src/components/ProxyGroup.js @@ -1,5 +1,6 @@ import React, { useMemo } from 'react'; import PropTypes from 'prop-types'; +import cx from 'classnames'; import { useActions, useStoreState } from 'm/store'; import Proxy from 'c/Proxy'; @@ -43,9 +44,12 @@ export default function ProxyGroup2({ name }) { <div className={s0.list}> {list.map(proxyName => { const isSelectable = group.type === 'Selector'; + const proxyClassName = cx(s0.proxy, { + [s0.proxySelectable]: isSelectable + }); return ( <div - className={s0.proxy} + className={proxyClassName} key={proxyName} onClick={() => { if (!isSelectable) return; |
