@@ -214,89 +214,10 @@ export const fetchRoleEnum = (name) => async (dispatch) => {
214
214
dispatch ( { type : "FETCH_ROLE" , payload : response } ) ;
215
215
} ;
216
216
217
- export const setEnableCart = ( val ) => async ( dispatch ) => {
218
- dispatch ( {
219
- type : "ENABLE_CART" ,
220
- payload : val
221
- } ) ;
222
- } ;
223
-
224
- export const setCartUpdateData = ( val ) => async ( dispatch ) => {
225
- dispatch ( {
226
- type : "UPDATE_CART" ,
227
- payload : val
228
- } ) ;
229
- } ;
230
-
231
- export const addItemsToCart = ( val ) => async ( dispatch ) => {
232
- dispatch ( {
233
- type : "ADD_CART" ,
234
- payload : val
235
- } ) ;
236
- } ;
237
-
238
- export const clearCartData = ( ) => async ( dispatch ) => {
239
- dispatch ( {
240
- type : "CLEAR_CART" ,
241
- payload : [ ]
242
- } ) ;
243
- } ;
244
-
245
- export const SaveMultipleCart = ( val ) => async ( dispatch ) => {
246
- dispatch ( {
247
- type : "MULTI_CART" ,
248
- payload : val
249
- } ) ;
250
- } ;
251
-
252
- export const removeFromCart = ( val ) => async ( dispatch ) => {
253
- dispatch ( {
254
- type : "REMOVE_CART" ,
255
- payload : val
256
- } ) ;
257
- } ;
258
-
259
- export const onChangeLevel2Dropdown = ( id , name ) => async ( dispatch ) => {
260
- localStorage . setItem ( `_dd${ name } ` , id ) ;
261
- let _data = { [ name ] : `${ id } ` } ;
262
- dispatch ( { type : "Level2_Dropdown" , payload : _data } ) ;
263
- } ;
264
-
265
- export const onChangeLevel3Dropdown = ( id , name ) => async ( dispatch ) => {
266
- localStorage . setItem ( `_dd${ name } ` , id ) ;
267
- let _data = { [ name ] : `${ id } ` } ;
268
- dispatch ( { type : "Level3_Dropdown" , payload : _data } ) ;
269
- } ;
270
-
271
- export const removeState = ( ) => async ( dispatch ) => {
272
- dispatch ( { type : "REMOVE_STATE" , payload : { } } ) ;
273
- } ;
274
- export const removeLevel2State = ( ) => async ( dispatch ) => {
275
- dispatch ( { type : "removeLevel2" , payload : { } } ) ;
276
- } ;
277
-
278
- export const removeLevel3State = ( ) => async ( dispatch ) => {
279
- dispatch ( { type : "removeLevel3" , payload : { } } ) ;
280
- } ;
281
-
282
217
export const showTenantName = ( name ) => async ( dispatch ) => {
283
218
dispatch ( { type : "SHOW_TENANT" , payload : name || null } ) ;
284
219
} ;
285
220
286
- export const saveDependantDDValue = ( id , value ) => async ( dispatch ) => {
287
- let _data = { [ `${ id } _dd` ] : value } ;
288
- dispatch ( { type : "SAVE_DEPENDANTDD" , payload : _data } ) ;
289
- } ;
290
-
291
- export const removeDependantDDValue = ( id , value ) => async ( dispatch ) => {
292
- let _data = { [ `${ id } _dd` ] : value } ;
293
- dispatch ( { type : "REMOVE_DEPENDANTDD" , payload : _data } ) ;
294
- } ;
295
-
296
- export const remove_AlldependantDD = ( ) => async ( dispatch ) => {
297
- dispatch ( { type : "REMOVE_ALLDEPENDANTDD" , payload : { } } ) ;
298
- } ;
299
-
300
221
export const save_tourSteps = ( steps ) => async ( dispatch ) => {
301
222
dispatch ( { type : "SAVE_TOURSTEPS" , payload : steps } ) ;
302
223
} ;
0 commit comments