OSDN Git Service

update enable function.
[bytom/Bytom-Dapp-Demo.git] / src / components / action.js
index eb31889..5f1d79c 100644 (file)
@@ -7,8 +7,18 @@ const setBytom = (bytom) => {
   }
 }
 
+const updateConnection = (bytomConnection) => {
+  return (dispatch) => {
+    dispatch({
+      type: "UPDATE_BYTOM_CONNECTION",
+      bytomConnection
+    })
+  }
+}
+
 let actions = {
   setBytom,
+  updateConnection
 }
 
 export default actions