add cases for downloaded file and continue to paper actions

This commit is contained in:
Daniel Ternyak 2017-04-27 01:13:33 -05:00
parent aea605ec80
commit d79b54ff35

View File

@ -1,10 +1,17 @@
import {GENERATE_WALLET_SHOW_PASSWORD, GENERATE_WALLET_FILE} from "actions/generateWallet";
import {
GENERATE_WALLET_SHOW_PASSWORD,
GENERATE_WALLET_FILE,
GENERATE_WALLET_HAS_DOWNLOADED_FILE,
GENERATE_WALLET_CONTINUE_TO_PAPER
} from "actions/generateWallet";
const initialState = {
showPassword: false,
generateWalletFile: false,
generateWalletFileConfirm: false
hasDownloadedWalletFile: false,
canProceedToPaper: false
}
export function generateWallet(state = initialState, action) {
@ -23,6 +30,20 @@ export function generateWallet(state = initialState, action) {
}
}
case GENERATE_WALLET_HAS_DOWNLOADED_FILE: {
return {
...state,
hasDownloadedWalletFile: true
}
}
case GENERATE_WALLET_CONTINUE_TO_PAPER: {
return {
...state,
canProceedToPaper: true
}
}
default:
return state
}