store: Drop unused pendingCompose section

With the introduction of the DDF wizard this part of the store isn't
used anymore.
This commit is contained in:
Sanne Raymaekers 2021-11-28 12:40:22 +01:00 committed by jkozol
parent 8ac1f8ae1d
commit 36d54a94e0
2 changed files with 0 additions and 84 deletions

View file

@ -4,7 +4,6 @@ import thunk from 'redux-thunk';
import { notificationsReducer } from '@redhat-cloud-services/frontend-components-notifications/redux';
import composes from './reducers/composes';
import pendingCompose from './reducers/pendingCompose';
let registry;
@ -18,7 +17,6 @@ export function init (store = {}, ...middleware) {
registry.register({
composes,
pendingCompose,
notifications: notificationsReducer,
});
}

View file

@ -1,82 +0,0 @@
import types from '../types';
import { RHEL_8 } from '../../constants.js';
const initialPendingComposeState = {
release: {
arch: 'x86_64',
distro: RHEL_8,
},
uploadDestinations: {
aws: false,
azure: false,
google: false,
},
uploadAWS: {
shareWithAccounts: [],
},
uploadAzure: {
tenantId: null,
subscriptionId: null,
resourceGroup: null,
},
uploadGoogle: {
accountType: 'googleAccount',
shareWithAccounts: [],
},
selectedPackages: [],
subscription: {
activationKey: null,
insights: true,
organization: null,
},
subscribeNow: false,
};
export function pendingCompose(state = initialPendingComposeState, action) {
switch (action.type) {
case types.SET_RELEASE:
return {
...state,
release: action.payload,
};
case types.SET_UPLOAD_DESTINATIONS:
return {
...state,
uploadDestinations: action.payload,
};
case types.SET_UPLOAD_AWS:
return {
...state,
uploadAWS: action.payload,
};
case types.SET_UPLOAD_AZURE:
return {
...state,
uploadAzure: action.payload,
};
case types.SET_UPLOAD_GOOGLE:
return {
...state,
uploadGoogle: action.payload,
};
case types.SET_SELECTED_PACKAGES:
return {
...state,
selectedPackages: action.payload,
};
case types.SET_SUBSCRIPTION:
return {
...state,
subscription: action.payload,
};
case types.SET_SUBSCRIBE_NOW:
return {
...state,
subscribeNow: action.payload,
};
default:
return state;
}
}
export default pendingCompose;