module fuse and syntax errors fixed

This commit is contained in:
Aditya Sankaran
2019-12-04 18:09:36 -05:00
parent 35cec7abf3
commit 4a4733f593
4 changed files with 13 additions and 426 deletions

View File

@@ -20,6 +20,8 @@ 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 });
@@ -155,11 +157,7 @@ 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 });