mirror of
https://github.com/ClaytonWWilson/CS307-Team24.git
synced 2025-12-15 18:08:46 +00:00
syntax error
This commit is contained in:
parent
323cb5bcee
commit
8b4c32b81f
@ -155,11 +155,6 @@ 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 });
|
||||
|
||||
@ -51,7 +51,7 @@ export default function(state = initialState, action) {
|
||||
return {
|
||||
...state,
|
||||
...action.payload
|
||||
|
||||
}
|
||||
case LOADING_USER:
|
||||
return {
|
||||
...state,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user