summaryrefslogtreecommitdiff
path: root/src/components/APIConfig.js
diff options
context:
space:
mode:
authorHaishan <[email protected]>2018-12-20 23:35:17 +0800
committerHaishan <[email protected]>2018-12-20 23:35:17 +0800
commit00d90f49de6ab8d2c143a2ededd23711cd0db1d3 (patch)
tree876ec68d738f27aba75c16106cddfdc90564afff /src/components/APIConfig.js
parent690beda0b91a3544f857a7226219622c370089f2 (diff)
chore: rename useComponentState to useStoreState
Diffstat (limited to 'src/components/APIConfig.js')
-rw-r--r--src/components/APIConfig.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/APIConfig.js b/src/components/APIConfig.js
index e31683c..de6eb1a 100644
--- a/src/components/APIConfig.js
+++ b/src/components/APIConfig.js
@@ -1,5 +1,5 @@
import React, { useState, useEffect, useRef } from 'react';
-import { useComponentState, useActions } from 'm/store';
+import { useStoreState, useActions } from 'm/store';
import Input from 'c/Input';
import Button from 'c/Button';
@@ -13,7 +13,7 @@ const mapStateToProps = s => ({
});
function APIConfig2() {
- const { apiConfig } = useComponentState(mapStateToProps);
+ const { apiConfig } = useStoreState(mapStateToProps);
const [hostname, setHostname] = useState(apiConfig.hostname);
const [port, setPort] = useState(apiConfig.port);
const [secret, setSecret] = useState(apiConfig.secret);