minor fixes for proposal diff and error handlers #1988
Merged
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.
This PR adds a couple of minor fixes reported by #1970 and #1982
Closes #1970
Closes #1982
Solution description
This diff adds a new
<DiffText>
component, which can be used to track simple diffs from texts, highlighting changes according to thediffWordsWithSpace
algorithm.Also, this adds missing error codes.
Use Cases
DiffText
component can be used whenever you want to get a diff between 2 texts.Code:
Result:
![Screen Shot 2020-06-08 at 7 34 32 PM](https://user-images.githubusercontent.com/22639213/84086822-230b1d00-a9bf-11ea-8f4a-016ee361edfd.png)
Dependencies
This depends on decred/pi-ui#274
UI Changes Screenshot