OSDN Git Service
(root)
/
bytom
/
Bytom-Dapp-Demo.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
update enable function.
[bytom/Bytom-Dapp-Demo.git]
/
src
/
components
/
action.js
1
const setBytom = (bytom) => {
2
return (dispatch) => {
3
dispatch({
4
type: "UPDATE_BYTOM",
5
bytom
6
})
7
}
8
}
9
10
const updateConnection = (bytomConnection) => {
11
return (dispatch) => {
12
dispatch({
13
type: "UPDATE_BYTOM_CONNECTION",
14
bytomConnection
15
})
16
}
17
}
18
19
let actions = {
20
setBytom,
21
updateConnection
22
}
23
24
export default actions