From 00d90f49de6ab8d2c143a2ededd23711cd0db1d3 Mon Sep 17 00:00:00 2001 From: Haishan Date: Thu, 20 Dec 2018 23:35:17 +0800 Subject: chore: rename useComponentState to useStoreState --- src/components/ProxyGroup.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/components/ProxyGroup.js') diff --git a/src/components/ProxyGroup.js b/src/components/ProxyGroup.js index d6b3c99..91b9717 100644 --- a/src/components/ProxyGroup.js +++ b/src/components/ProxyGroup.js @@ -1,6 +1,6 @@ import React, { useMemo } from 'react'; import PropTypes from 'prop-types'; -import { useActions, useComponentState } from 'm/store'; +import { useActions, useStoreState } from 'm/store'; import Proxy from 'c/Proxy'; @@ -15,7 +15,7 @@ const mapStateToProps = s => ({ // should move this to sth like constants.js // const userProxyTypes = ['Shadowsocks', 'Vmess', 'Socks5']; export default function ProxyGroup2({ name }) { - const { proxies } = useComponentState(mapStateToProps); + const { proxies } = useStoreState(mapStateToProps); const actions = useActions({ switchProxy }); const group = proxies[name]; const { all, now } = group; -- cgit v1.3.1