-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature connect to api #27
base: develop
Are you sure you want to change the base?
Conversation
src/reducers/Account.js
Outdated
} | ||
} | ||
|
||
alert('here ....'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove
src/reducers/Account.js
Outdated
}; | ||
|
||
export default (state = initialState, action) => { | ||
switch (action.type) { | ||
case ALL_USERS: | ||
alert('Got all users'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove
src/reducers/Account.js
Outdated
@@ -178,6 +156,7 @@ export default (state = initialState, action) => { | |||
} | |||
} | |||
} | |||
|
|||
console.log(userChats); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove
src/reducers/Chat.js
Outdated
); | ||
}); | ||
|
||
alert('Check your log file'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove
src/reducers/Chat.js
Outdated
|
||
var chats = action.chats; | ||
state.chats = chats; | ||
alert('got ' + chats.length); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove all alerts and console.logs
I added Axios via npm and some few get() and post() ,
I have changed some naming conversions for some variables.