diff options
Diffstat (limited to 'src/components/Proxy.js')
| -rw-r--r-- | src/components/Proxy.js | 11 |
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; |
