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/Config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/components/Config.js') diff --git a/src/components/Config.js b/src/components/Config.js index e72d5f9..e1a7af3 100644 --- a/src/components/Config.js +++ b/src/components/Config.js @@ -1,6 +1,6 @@ import React, { useEffect, useState } from 'react'; import PropTypes from 'prop-types'; -import { useComponentState, useActions } from 'm/store'; +import { useStoreState, useActions } from 'm/store'; import { getConfigs, fetchConfigs, updateConfigs } from 'd/configs'; @@ -57,7 +57,7 @@ const mapStateToProps = s => ({ configs: getConfigs(s) }); export default function ConfigContainer() { const { fetchConfigs } = useActions(actions); - const { configs } = useComponentState(mapStateToProps); + const { configs } = useStoreState(mapStateToProps); useEffect(() => { fetchConfigs(); }, []); -- cgit v1.3.1