WIP: Add Links in EmotionResults to correct Learn page; fix antipattern in Play - closes #31 and #36 #40
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.
What's this PR do?
I added in
<Link>
tags to the EmotionResults component so users can learn more about the emotions they are displaying.I intentionally did not create a link for "neutral".
I also changed the antipattern of using
function.bind(this)
in the props to a dumb component.Learning
Where should the reviewer start?
Take a look at the screenshot and let me know if the flow makes sense.
Any background context you want to provide?
I'm also trying to hook up a button for the intended emotion - the one selected on the left-hand side of the screen.
Screenshots
Demo of the learn-more link: