implement direct URI navigation #134

Merged
akinwale merged 4 commits from load-lbry-uri into master 2018-05-25 00:47:55 +02:00
2 changed files with 3 additions and 6 deletions
Showing only changes of commit 98c9bce63f - Show all commits

View file

@ -5,9 +5,6 @@ import UriBar from '../../component/uriBar';
neb-b commented 2018-05-23 17:30:27 +02:00 (Migrated from github.com)
Review

You can remove this

You can remove this
neb-b commented 2018-05-23 17:30:27 +02:00 (Migrated from github.com)
Review

You can remove this

You can remove this
import channelPageStyle from '../../styles/channelPage';
class ChannelPage extends React.PureComponent {
componentDidMount() {
neb-b commented 2018-05-23 17:30:27 +02:00 (Migrated from github.com)
Review

You can remove this

You can remove this
}
neb-b commented 2018-05-23 17:30:27 +02:00 (Migrated from github.com)
Review

You can remove this

You can remove this
neb-b commented 2018-05-23 17:30:27 +02:00 (Migrated from github.com)
Review

You can remove this

You can remove this
render() {
const { claim, navigation, uri } = this.props;
const { name } = claim;

neb-b commented 2018-05-23 17:30:27 +02:00 (Migrated from github.com)
Review

You can remove this

You can remove this
neb-b commented 2018-05-23 17:30:27 +02:00 (Migrated from github.com)
Review

You can remove this

You can remove this

View file

@ -49,9 +49,9 @@ class FilePage extends React.PureComponent {
}
}
componentWillReceiveProps(nextProps) {
this.fetchFileInfo(nextProps);
const { isResolvingUri, resolveUri, claim, navigation } = nextProps;
componentDidUpdate() {
this.fetchFileInfo(this.props);
const { isResolvingUri, resolveUri, claim, navigation } = this.props;
const { uri } = navigation.state.params;
if (!isResolvingUri && claim === undefined && uri) {