From 1a4fac1dec3a10e2407c09495063c591fc542333 Mon Sep 17 00:00:00 2001 From: Daniel Ternyak Date: Tue, 20 Jun 2017 01:28:22 -0500 Subject: [PATCH] accidently swapped verb and namespace order for action creators originally; fixed --- common/actions/generateWallet.js | 8 +++--- common/actions/swap.js | 10 +++---- .../GenerateWalletPasswordComponent.jsx | 24 ++++++++-------- .../GenerateWalletPasswordInputComponent.jsx | 4 +-- .../containers/Tabs/GenerateWallet/index.js | 8 +++--- .../Tabs/Swap/components/wantToSwapMy.js | 28 +++++++++---------- common/containers/Tabs/Swap/index.js | 28 +++++++++---------- 7 files changed, 55 insertions(+), 55 deletions(-) diff --git a/common/actions/generateWallet.js b/common/actions/generateWallet.js index 677ab9b4..a4a7273c 100644 --- a/common/actions/generateWallet.js +++ b/common/actions/generateWallet.js @@ -5,18 +5,18 @@ import { GENERATE_WALLET_SHOW_PASSWORD } from 'actions/generateWalletConstants'; -export const generateWalletShowPassword = () => { +export const showPasswordGenerateWallet = () => { return { type: GENERATE_WALLET_SHOW_PASSWORD }; }; -export const generateWalletGenerateFile = () => { +export const generateFileGenerateWallet = () => { return { type: GENERATE_WALLET_FILE }; }; -export const generateWalletDownloadFile = () => { +export const downloadFileGenerateWallet = () => { return { type: GENERATE_WALLET_DOWNLOAD_FILE }; }; -export const generateWalletConfirmContinueToPaper = () => { +export const confirmContinueToPaperGenerateWallet = () => { return { type: GENERATE_WALLET_CONFIRM_CONTINUE_TO_PAPER }; }; diff --git a/common/actions/swap.js b/common/actions/swap.js index 7ffbeead..15f2a4d0 100644 --- a/common/actions/swap.js +++ b/common/actions/swap.js @@ -6,35 +6,35 @@ import { SWAP_UPDATE_BITY_RATES } from './swapConstants'; -export const swapOriginKind = value => { +export const originKindSwap = value => { return { type: SWAP_ORIGIN_KIND, value }; }; -export const swapDestinationKind = value => { +export const destinationKindSwap = value => { return { type: SWAP_DESTINATION_KIND, value }; }; -export const swapOriginAmount = value => { +export const originAmountSwap = value => { return { type: SWAP_ORIGIN_AMOUNT, value }; }; -export const swapDestinationAmount = value => { +export const destinationAmountSwap = value => { return { type: SWAP_DESTINATION_AMOUNT, value }; }; -export const swapUpdateBityRates = value => { +export const updateBityRatesSwap = value => { return { type: SWAP_UPDATE_BITY_RATES, value diff --git a/common/containers/Tabs/GenerateWallet/components/GenerateWalletPasswordComponent.jsx b/common/containers/Tabs/GenerateWallet/components/GenerateWalletPasswordComponent.jsx index 66e3466d..db577887 100644 --- a/common/containers/Tabs/GenerateWallet/components/GenerateWalletPasswordComponent.jsx +++ b/common/containers/Tabs/GenerateWallet/components/GenerateWalletPasswordComponent.jsx @@ -31,10 +31,10 @@ class GenerateWalletPasswordComponent extends Component { hasDownloadedWalletFile: PropTypes.bool, canProceedToPaper: PropTypes.bool, // actions - generateWalletShowPassword: PropTypes.func, - generateWalletGenerateFile: PropTypes.func, - generateWalletDownloadFile: PropTypes.func, - generateWalletConfirmContinueToPaper: PropTypes.func + showPasswordGenerateWallet: PropTypes.func, + generateFileGenerateWallet: PropTypes.func, + downloadFileGenerateWallet: PropTypes.func, + confirmContinueToPaperGenerateWallet: PropTypes.func }; continueToPaper() {} @@ -51,10 +51,10 @@ class GenerateWalletPasswordComponent extends Component { showPassword, generateWalletFile, hasDownloadedWalletFile, - generateWalletShowPassword, - generateWalletGenerateFile, - generateWalletDownloadFile, - generateWalletConfirmContinueToPaper + showPasswordGenerateWallet, + generateFileGenerateWallet, + downloadFileGenerateWallet, + confirmContinueToPaperGenerateWallet } = this.props; return ( @@ -72,13 +72,13 @@ class GenerateWalletPasswordComponent extends Component { validate={[required, minLength9]} component={GenerateWalletPasswordInputComponent} showPassword={showPassword} - generateWalletShowPassword={generateWalletShowPassword} + showPasswordGenerateWallet={showPasswordGenerateWallet} name="password" type="text" />