use claimName instead of uri while loading channel page #1711
1 changed files with 3 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
||||||
// @flow
|
// @flow
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
import { parseURI } from 'lbry-redux';
|
||||||
import BusyIndicator from 'component/common/busy-indicator';
|
import BusyIndicator from 'component/common/busy-indicator';
|
||||||
import ChannelPage from 'page/channel';
|
import ChannelPage from 'page/channel';
|
||||||
import FilePage from 'page/file';
|
import FilePage from 'page/file';
|
||||||
|
@ -39,10 +40,11 @@ class ShowPage extends React.PureComponent<Props> {
|
||||||
let innerContent = '';
|
let innerContent = '';
|
||||||
|
|
||||||
if ((isResolvingUri && !claim) || !claim) {
|
if ((isResolvingUri && !claim) || !claim) {
|
||||||
|
const { claimName } = parseURI(uri);
|
||||||
innerContent = (
|
innerContent = (
|
||||||
<Page>
|
<Page>
|
||||||
<section className="card">
|
<section className="card">
|
||||||
<h1>{uri}</h1>
|
<h1>{claimName}</h1>
|
||||||
<div className="card__content">
|
<div className="card__content">
|
||||||
{isResolvingUri && <BusyIndicator message={__('Loading decentralized data...')} />}
|
{isResolvingUri && <BusyIndicator message={__('Loading decentralized data...')} />}
|
||||||
{claim === null &&
|
{claim === null &&
|
||||||
|
|
Loading…
Reference in a new issue