before start updating to new redux

This commit is contained in:
QkoSad
2023-05-18 20:17:22 +03:00
parent 7451b337af
commit 35b69eae3f
11 changed files with 53 additions and 42 deletions
+1 -6
View File
@@ -11,12 +11,7 @@ import {
REMOVE_COMMENT
} from './types';
/*
NOTE: we don't need a config object for axios as the
default headers in axios are already Content-Type: application/json
also axios stringifies and parses JSON for you, so no need for
JSON.stringify or JSON.parse
*/
// Get posts
export const getPosts = () => async (dispatch) => {