mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 01:39:44 +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;
|
|
}
|
|
}
|