mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-01-11 11:34:26 +00:00
add cases for downloaded file and continue to paper actions
This commit is contained in:
parent
aea605ec80
commit
d79b54ff35
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user