From 27c1f07cd5a0caa9f25d7be30c39705492fa51cc Mon Sep 17 00:00:00 2001 From: Andrean <88448470+QkoSad@users.noreply.github.com> Date: Mon, 8 May 2023 16:47:51 +0000 Subject: [PATCH] Update profile.js --- client/src/reducers/profile.js | 33 +-------------------------------- 1 file changed, 1 insertion(+), 32 deletions(-) diff --git a/client/src/reducers/profile.js b/client/src/reducers/profile.js index 2968be9..2732c7d 100644 --- a/client/src/reducers/profile.js +++ b/client/src/reducers/profile.js @@ -5,24 +5,16 @@ import { UPDATE_PROFILE, GET_PROFILES, GET_REPOS, -<<<<<<< HEAD NO_REPOS } from '../actions/types'; -======= - NO_REPOS, -} from "../actions/types"; ->>>>>>> cc38df43629d64ca77f694c971a13a026b3afcfb const initialState = { profile: null, profiles: [], repos: [], loading: true, -<<<<<<< HEAD - error: {} -======= error: {}, ->>>>>>> cc38df43629d64ca77f694c971a13a026b3afcfb + }; function profileReducer(state = initialState, action) { @@ -34,61 +26,38 @@ function profileReducer(state = initialState, action) { return { ...state, profile: payload, -<<<<<<< HEAD - loading: false -======= loading: false, ->>>>>>> cc38df43629d64ca77f694c971a13a026b3afcfb }; case GET_PROFILES: return { ...state, profiles: payload, -<<<<<<< HEAD - loading: false -======= loading: false, ->>>>>>> cc38df43629d64ca77f694c971a13a026b3afcfb }; case PROFILE_ERROR: return { ...state, error: payload, loading: false, -<<<<<<< HEAD profile: null -======= profile: null, ->>>>>>> cc38df43629d64ca77f694c971a13a026b3afcfb }; case CLEAR_PROFILE: return { ...state, profile: null, -<<<<<<< HEAD repos: [] -======= - repos: [], ->>>>>>> cc38df43629d64ca77f694c971a13a026b3afcfb }; case GET_REPOS: return { ...state, repos: payload, -<<<<<<< HEAD - loading: false -======= loading: false, ->>>>>>> cc38df43629d64ca77f694c971a13a026b3afcfb }; case NO_REPOS: return { ...state, -<<<<<<< HEAD - repos: [] -======= repos: [], ->>>>>>> cc38df43629d64ca77f694c971a13a026b3afcfb }; default: return state;