1- import * as types from ' ./actionTypes' ;
1+ import * as types from " ./actionTypes" ;
22
33// BUSINESS LOGIC ACTIONS
4- export const getHistory = history => ( {
4+ export const getHistory = ( history ) => ( {
55 type : types . GET_HISTORY ,
66 payload : history ,
77} ) ;
88
9- export const deleteFromHistory = reqRes => ( {
9+ export const deleteFromHistory = ( reqRes ) => ( {
1010 type : types . DELETE_HISTORY ,
1111 payload : reqRes ,
1212} ) ;
@@ -15,22 +15,22 @@ export const clearHistory = () => ({
1515 type : types . CLEAR_HISTORY ,
1616} ) ;
1717
18- export const getCollections = collections => ( {
18+ export const getCollections = ( collections ) => ( {
1919 type : types . GET_COLLECTIONS ,
2020 payload : collections ,
2121} ) ;
2222
23- export const deleteFromCollection = collection => ( {
23+ export const deleteFromCollection = ( collection ) => ( {
2424 type : types . DELETE_COLLECTION ,
2525 payload : collection ,
2626} ) ;
2727
28- export const collectionToReqRes = reqResArray => ( {
28+ export const collectionToReqRes = ( reqResArray ) => ( {
2929 type : types . COLLECTION_TO_REQRES ,
3030 payload : reqResArray ,
3131} ) ;
3232
33- export const collectionAdd = collection => ( {
33+ export const collectionAdd = ( collection ) => ( {
3434 type : types . COLLECTION_ADD ,
3535 payload : collection ,
3636} ) ;
@@ -39,55 +39,54 @@ export const reqResClear = () => ({
3939 type : types . REQRES_CLEAR ,
4040} ) ;
4141
42- export const reqResAdd = reqRes => ( {
42+ export const reqResAdd = ( reqRes ) => ( {
4343 type : types . REQRES_ADD ,
4444 payload : reqRes ,
4545} ) ;
4646
47- export const reqResDelete = reqRes => ( {
47+ export const reqResDelete = ( reqRes ) => ( {
4848 type : types . REQRES_DELETE ,
4949 payload : reqRes ,
5050} ) ;
5151
52- export const reqResUpdate = reqRes => ( {
52+ export const reqResUpdate = ( reqRes ) => ( {
5353 type : types . REQRES_UPDATE ,
5454 payload : reqRes ,
5555} ) ;
5656
57- export const setComposerWarningMessage = message => ( {
57+ export const setComposerWarningMessage = ( message ) => ( {
5858 type : types . SET_COMPOSER_WARNING_MESSAGE ,
5959 payload : message ,
6060} ) ;
6161
62-
6362export const setNewRequestFields = ( requestObj ) => ( {
6463 type : types . SET_NEW_REQUEST_FIELDS ,
65- payload : requestObj
64+ payload : requestObj ,
6665} ) ;
6766
6867export const setNewRequestHeaders = ( headers ) => ( {
6968 type : types . SET_NEW_REQUEST_HEADERS ,
70- payload : headers
69+ payload : headers ,
7170} ) ;
7271
7372export const setNewRequestStreams = ( streams ) => ( {
7473 type : types . SET_NEW_REQUEST_STREAMS ,
75- payload : streams
74+ payload : streams ,
7675} ) ;
7776
7877export const setNewRequestBody = ( body ) => ( {
7978 type : types . SET_NEW_REQUEST_BODY ,
80- payload : body
79+ payload : body ,
8180} ) ;
8281
8382export const setNewRequestCookies = ( cookies ) => ( {
8483 type : types . SET_NEW_REQUEST_COOKIES ,
85- payload : cookies
84+ payload : cookies ,
8685} ) ;
8786
8887export const setNewRequestSSE = ( SSEBool ) => ( {
8988 type : types . SET_NEW_REQUEST_SSE ,
90- payload : SSEBool
89+ payload : SSEBool ,
9190} ) ;
9291
9392export const setCurrentTab = ( tab ) => ( {
@@ -100,17 +99,16 @@ export const setChecksAndMinis = (reqResArray) => ({
10099 payload : reqResArray ,
101100} ) ;
102101
103-
104102// UI ACTIONS
105- export const showWarning = ( ) => ( {
106- type : types . SHOW_WARNING ,
107- } ) ;
103+ // export const showWarning = () => ({
104+ // type: types.SHOW_WARNING,
105+ // });
108106
109- export const hideWarning = ( ) => ( {
110- type : types . HIDE_WARNING ,
111- } ) ;
107+ // export const hideWarning = () => ({
108+ // type: types.HIDE_WARNING,
109+ // });
112110
113- export const setComposerDisplay = composerDisplay => ( {
111+ export const setComposerDisplay = ( composerDisplay ) => ( {
114112 type : types . SET_COMPOSER_DISPLAY ,
115113 payload : composerDisplay ,
116114} ) ;
0 commit comments