mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-29 23:58:06 +01:00
20 lines
453 B
JavaScript
20 lines
453 B
JavaScript
import testData from '../test-data';
|
|
|
|
const initialState = { ...testData.send };
|
|
export default function sendSBReducer(state = initialState, action) {
|
|
switch (action.type) {
|
|
case 'send/updateSendStage':
|
|
return {
|
|
...state,
|
|
stage: action.payload,
|
|
};
|
|
case 'send/updateSendAsset':
|
|
return {
|
|
...state,
|
|
asset: { ...state.asset, type: action.payload },
|
|
};
|
|
default:
|
|
return state;
|
|
}
|
|
}
|