fix 1972 - invalid characters in URL #2026

Merged
tzarebczan merged 3 commits from fix-bad-url into master 2018-10-11 22:25:44 +02:00
tzarebczan commented 2018-10-11 08:05:51 +02:00 (Migrated from github.com)

Adds a snackbar if the lbry:// URL is invalid
I tried to do the doNotify similar to most of the other pages, but failed. If this is not the right way to go about it, I'd love to learn because we do it 4 different ways haha.

Adds a snackbar if the lbry:// URL is invalid I tried to do the doNotify similar to most of the other pages, but failed. If this is not the right way to go about it, I'd love to learn because we do it 4 different ways haha.
neb-b (Migrated from github.com) reviewed 2018-10-11 08:05:51 +02:00
neb-b commented 2018-10-11 08:09:57 +02:00 (Migrated from github.com)

Right here you will want to do something like this.

Then we have access to doNotify (or whatever you call it, but it shouldn't be doOpenModal) in this.props, i.e. this.props.doShowSnackBar()

[Right here](https://github.com/lbryio/lbry-desktop/blob/master/src/renderer/component/wunderbar/index.js#L40) you will want to do something like [this](https://github.com/lbryio/lbry-desktop/blob/22207d2636851bd4b60d45b1af0b3f329067ed9b/src/renderer/component/externalLink/index.js#L9). Then we have access to `doNotify` (or whatever you call it, but it shouldn't be `doOpenModal`) in `this.props`, i.e. `this.props.doShowSnackBar()`
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: LBRYCommunity/lbry-desktop#2026
No description provided.