|
|
|
@ -5,6 +5,11 @@ var actions = { |
|
|
|
|
|
|
|
|
|
GO_HOME: 'GO_HOME', |
|
|
|
|
goHome: goHome, |
|
|
|
|
// modal state
|
|
|
|
|
MODAL_OPEN: 'UI_MODAL_OPEN', |
|
|
|
|
MODAL_CLOSE: 'UI_MODAL_CLOSE', |
|
|
|
|
showModal: showModal, |
|
|
|
|
hideModal: hideModal, |
|
|
|
|
// sidebar state
|
|
|
|
|
SIDEBAR_OPEN: 'UI_SIDEBAR_OPEN', |
|
|
|
|
SIDEBAR_CLOSE: 'UI_SIDEBAR_CLOSE', |
|
|
|
@ -768,6 +773,18 @@ function useEtherscanProvider () { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
function showModal () { |
|
|
|
|
return { |
|
|
|
|
type: actions.MODAL_OPEN, |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
function hideModal () { |
|
|
|
|
return { |
|
|
|
|
type: actions.MODAL_CLOSE, |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
function showSidebar () { |
|
|
|
|
return { |
|
|
|
|
type: actions.SIDEBAR_OPEN, |
|
|
|
|