implement direct URI navigation #134
2 changed files with 3 additions and 6 deletions
|
@ -5,9 +5,6 @@ import UriBar from '../../component/uriBar';
|
||||||
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() {
|
|
||||||
You can remove this You can remove this
|
|||||||
}
|
|
||||||
You can remove this You can remove this
|
|||||||
|
|
||||||
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;
|
||||||
|
|
||||||
You can remove this You can remove this
You can remove this You can remove this
|
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue
You can remove this