summaryrefslogtreecommitdiff
path: root/src/components/Proxy.js
diff options
context:
space:
mode:
authorHaishan <[email protected]>2019-01-02 22:33:05 +0800
committerHaishan <[email protected]>2019-01-02 22:33:05 +0800
commit761e25f1ea41195b4e58f9ad643a20acbc3f3cfe (patch)
treeb70d9d4c1e8832b7c7aca6e3312d1834b9fd03f2 /src/components/Proxy.js
parentbe029ded162f9bd88a81e9d8e03872f6facd4461 (diff)
style(proxies): tweak proxy hover style
Diffstat (limited to 'src/components/Proxy.js')
-rw-r--r--src/components/Proxy.js11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/components/Proxy.js b/src/components/Proxy.js
index 0a7421f..d1959d0 100644
--- a/src/components/Proxy.js
+++ b/src/components/Proxy.js
@@ -1,6 +1,5 @@
import React from 'react';
import PropTypes from 'prop-types';
-import cx from 'classnames';
import { useStoreState } from 'm/store';
import Icon from 'c/Icon';
@@ -49,18 +48,15 @@ const mapStateToProps = s => {
};
};
-function Proxy({ now, name, isSelectable }) {
+function Proxy({ now, name }) {
const { proxies, delay } = useStoreState(mapStateToProps);
const latency = delay[name];
const proxy = proxies[name];
const color = now ? colors[proxy.type] : '#555';
const iconId = icons[proxy.type];
- const proxyClassName = cx(s0.proxy, {
- [s0.proxyNotSelectable]: !isSelectable
- });
return (
- <div className={proxyClassName}>
+ <div className={s0.proxy}>
<div className={s0.left} style={{ color }}>
<Icon id={iconId} width={80} height={80} />
</div>
@@ -73,8 +69,7 @@ function Proxy({ now, name, isSelectable }) {
}
Proxy.propTypes = {
now: PropTypes.bool,
- name: PropTypes.string,
- isSelectable: PropTypes.bool
+ name: PropTypes.string
};
export default Proxy;