Revert "module fuse and syntax errors fixed"

This reverts commit 4a4733f593.
This commit is contained in:
Aditya Sankaran
2019-12-04 18:15:37 -05:00
parent 4a4733f593
commit 323cb5bcee
4 changed files with 426 additions and 13 deletions

View File

@@ -20,8 +20,6 @@ const setAuthorizationHeader = (token) => {
axios.defaults.headers.common['Authorization'] = FBIdToken;
}
// Gets Database info for the logged in user and sets it in Redux
export const getUserData = () => (dispatch) => {
dispatch({ type: LOADING_USER });
@@ -157,7 +155,11 @@ export const unlikePost = (postId, postArray) => (dispatch) => {
}
const setAuthorizationHeader = (token) => {
const FBIdToken = `Bearer ${token}`;
localStorage.setItem('FBIdToken', FBIdToken);
axios.defaults.headers.common['Authorization'] = FBIdToken;
}
// Sends an image data form to firebase to be uploaded to the user profile
export const uploadImage = (formData) => (dispatch) => {
dispatch({ type: LOADING_UI });