UNPKG

instantjob-recruiter-client

Version:

a set of tools for creating an instantjob recruiter react client

21 lines (19 loc) 383 B
const initial_state = { id: "", first_name: "", last_name: "", agency: {}, email: "", auth_token: "", no_emails: false, logout_link: "", edit_password_link: "", } export function profile(state = initial_state, action) { switch (action.type) { case 'update_profile': return Object.assign({}, state, action.profile) default: return state } }