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'; import channelPageStyle from '../../styles/channelPage';
class ChannelPage extends React.PureComponent { 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() { render() {
const { claim, navigation, uri } = this.props; const { claim, navigation, uri } = this.props;
const { name } = claim; 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) { componentDidUpdate() {
this.fetchFileInfo(nextProps); this.fetchFileInfo(this.props);
const { isResolvingUri, resolveUri, claim, navigation } = nextProps; const { isResolvingUri, resolveUri, claim, navigation } = this.props;
const { uri } = navigation.state.params; const { uri } = navigation.state.params;
if (!isResolvingUri && claim === undefined && uri) { if (!isResolvingUri && claim === undefined && uri) {