use isChannel from parseURI
This commit is contained in:
parent
57dfaab1ea
commit
ae980bc142
1 changed files with 3 additions and 4 deletions
|
@ -53,9 +53,8 @@ function ShowPage(props: Props) {
|
||||||
const claimExists = claim !== null && claim !== undefined;
|
const claimExists = claim !== null && claim !== undefined;
|
||||||
const haventFetchedYet = claim === undefined;
|
const haventFetchedYet = claim === undefined;
|
||||||
const isMine = claim && claim.is_my_output;
|
const isMine = claim && claim.is_my_output;
|
||||||
const { channelName, contentName } = parseURI(uri);
|
const { contentName, isChannel } = parseURI(uri);
|
||||||
const { push } = useHistory();
|
const { push } = useHistory();
|
||||||
const isContentNameChannel = channelName && !contentName;
|
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
// @if TARGET='web'
|
// @if TARGET='web'
|
||||||
|
@ -98,9 +97,9 @@ function ShowPage(props: Props) {
|
||||||
{!isResolvingUri && !isSubscribed && (
|
{!isResolvingUri && !isSubscribed && (
|
||||||
<div className="main--empty">
|
<div className="main--empty">
|
||||||
<Yrbl
|
<Yrbl
|
||||||
title={isContentNameChannel ? __('Channel Not Found') : __('No Content Found')}
|
title={isChannel ? __('Channel Not Found') : __('No Content Found')}
|
||||||
subtitle={
|
subtitle={
|
||||||
isContentNameChannel ? (
|
isChannel ? (
|
||||||
__(`Probably because you didn't make it.`)
|
__(`Probably because you didn't make it.`)
|
||||||
) : (
|
) : (
|
||||||
<div className="section__actions">
|
<div className="section__actions">
|
||||||
|
|
Loading…
Reference in a new issue