diff options
author | Dan <danjm.com@gmail.com> | 2018-04-27 08:38:14 +0800 |
---|---|---|
committer | Dan <danjm.com@gmail.com> | 2018-04-27 10:46:11 +0800 |
commit | 91c201aa72581a59a0d2ef73a225b1768584dea7 (patch) | |
tree | 00782275e57c568fff16e289002a6c3a91f3c81e /ui/app/ducks | |
parent | 8ff7806f1b471a90fa3f45ebc10f0f4452ade541 (diff) | |
download | tangerine-wallet-browser-91c201aa72581a59a0d2ef73a225b1768584dea7.tar.gz tangerine-wallet-browser-91c201aa72581a59a0d2ef73a225b1768584dea7.tar.zst tangerine-wallet-browser-91c201aa72581a59a0d2ef73a225b1768584dea7.zip |
Lint fixes and alphabetization for i3725-refactor-send-component
Diffstat (limited to 'ui/app/ducks')
-rw-r--r-- | ui/app/ducks/send.js | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/ui/app/ducks/send.js b/ui/app/ducks/send.js index c4874aa8c..e0feb9f06 100644 --- a/ui/app/ducks/send.js +++ b/ui/app/ducks/send.js @@ -1,10 +1,10 @@ import extend from 'xtend' // Actions -const OPEN_FROM_DROPDOWN = 'metamask/send/OPEN_FROM_DROPDOWN'; -const CLOSE_FROM_DROPDOWN = 'metamask/send/CLOSE_FROM_DROPDOWN'; -const OPEN_TO_DROPDOWN = 'metamask/send/OPEN_TO_DROPDOWN'; -const CLOSE_TO_DROPDOWN = 'metamask/send/CLOSE_TO_DROPDOWN'; +const OPEN_FROM_DROPDOWN = 'metamask/send/OPEN_FROM_DROPDOWN' +const CLOSE_FROM_DROPDOWN = 'metamask/send/CLOSE_FROM_DROPDOWN' +const OPEN_TO_DROPDOWN = 'metamask/send/OPEN_TO_DROPDOWN' +const CLOSE_TO_DROPDOWN = 'metamask/send/CLOSE_TO_DROPDOWN' // TODO: determine if this approach to initState is consistent with conventional ducks pattern const initState = { @@ -14,7 +14,7 @@ const initState = { } // Reducer -export default function reducer({ send: sendState = initState }, action = {}) { +export default function reducer ({ send: sendState = initState }, action = {}) { switch (action.type) { case OPEN_FROM_DROPDOWN: return extend(sendState, { @@ -38,18 +38,18 @@ export default function reducer({ send: sendState = initState }, action = {}) { } // Action Creators -export function openFromDropdown() { - return { type: OPEN_FROM_DROPDOWN }; +export function openFromDropdown () { + return { type: OPEN_FROM_DROPDOWN } } -export function closeFromDropdown() { - return { type: CLOSE_FROM_DROPDOWN }; +export function closeFromDropdown () { + return { type: CLOSE_FROM_DROPDOWN } } -export function openToDropdown() { - return { type: OPEN_TO_DROPDOWN }; +export function openToDropdown () { + return { type: OPEN_TO_DROPDOWN } } -export function closeToDropdown() { - return { type: CLOSE_TO_DROPDOWN }; -}
\ No newline at end of file +export function closeToDropdown () { + return { type: CLOSE_TO_DROPDOWN } +} |