Conversation
# Conflicts: # src/actions/actions.js # src/components/Page/Page.js # src/components/PostPage/PostPage.js
src/actions/actions.js
Outdated
| const posts = getState().posts; | ||
| postId = getState().postToDelete; | ||
|
|
||
| let posts = getState().posts; |
src/actions/auth.js
Outdated
| } | ||
|
|
||
| const myParams = Object.keys(data).map((key) => { | ||
| return encodeURIComponent(key) + '=' + encodeURIComponent(data[key]); |
| }; | ||
| } | ||
|
|
||
| export function setToken(token) { |
Collaborator
There was a problem hiding this comment.
what if I refresh browser window. Will I be still logged in?
| } | ||
|
|
||
| onHandleButton() { | ||
| this.props.signIn('luannhayes@qualitern.com', 'lesa'); |
| <Layout> | ||
| <div className={classNames('LoginPage text-center')}> | ||
| <h4> Log in </h4> | ||
| <input type="text" name="myLoginReact" autoComplete="on" |
Collaborator
There was a problem hiding this comment.
autocomplete="on" not safe at all
src/components/Post/Post.js
Outdated
| <li className={classNames('Post list-group-item panel row')}> | ||
| <div className={classNames('Post_data col-md-10')}> | ||
| <li id={`post${this.props.id}`} className={ classNames('Post list-group-item panel row', | ||
| (this.props.userId === this.props.myId) ? 'Post--my-post' : '') }> |
Collaborator
There was a problem hiding this comment.
'Post--my-post': this.props.userId === this.props.myId
src/components/User/User.js
Outdated
| <li className="User"> | ||
| <input type="radio" id={`input${this.props.name}`} value={this.props.id} name="userRadio" /> | ||
| <label htmlFor={`input${this.props.name}`}>{this.props.name}</label> | ||
| <li className={classNames('User', (this.props.id === this.props.myId) ? 'actual' : '')}> |
| this.props.isLogged && | ||
| this.__renderUserData() | ||
| } | ||
| { !this.props.isLogged && |
Collaborator
There was a problem hiding this comment.
code duplication (you can move it to one if)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.