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';
|
||||
|
||||
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() {
|
||||
const { claim, navigation, uri } = this.props;
|
||||
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) {
|
||||
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) {
|
||||
|
|
Loading…
Reference in a new issue
You can remove this