mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-08-31 01:11:26 +00:00
show authenticated rows on desktop
This commit is contained in:
parent
495579ff34
commit
a2ceb9df59
1 changed files with 5 additions and 4 deletions
|
@ -25,9 +25,10 @@ type RowDataItem = {
|
||||||
|
|
||||||
function HomePage(props: Props) {
|
function HomePage(props: Props) {
|
||||||
const { followedTags, subscribedChannels, authenticated } = props;
|
const { followedTags, subscribedChannels, authenticated } = props;
|
||||||
|
const showAuthenticatedRows = authenticated || !IS_WEB;
|
||||||
let rowData: Array<RowDataItem> = [];
|
let rowData: Array<RowDataItem> = [];
|
||||||
|
|
||||||
if (!authenticated) {
|
if (!showAuthenticatedRows) {
|
||||||
rowData.push(
|
rowData.push(
|
||||||
{
|
{
|
||||||
title: 'Trending On LBRY',
|
title: 'Trending On LBRY',
|
||||||
|
@ -43,7 +44,7 @@ function HomePage(props: Props) {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (authenticated) {
|
if (showAuthenticatedRows) {
|
||||||
if (subscribedChannels && subscribedChannels.length > 0) {
|
if (subscribedChannels && subscribedChannels.length > 0) {
|
||||||
rowData.push({
|
rowData.push({
|
||||||
title: 'Recent From Following',
|
title: 'Recent From Following',
|
||||||
|
@ -134,7 +135,7 @@ function HomePage(props: Props) {
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
if (!authenticated) {
|
if (!showAuthenticatedRows) {
|
||||||
rowData.push({
|
rowData.push({
|
||||||
title: '#lbry',
|
title: '#lbry',
|
||||||
link: `/$/${PAGES.TAGS}?t=lbry&type=top&time=all`,
|
link: `/$/${PAGES.TAGS}?t=lbry&type=top&time=all`,
|
||||||
|
@ -146,7 +147,7 @@ function HomePage(props: Props) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (authenticated) {
|
if (showAuthenticatedRows) {
|
||||||
rowData.push({
|
rowData.push({
|
||||||
title: 'Trending On LBRY',
|
title: 'Trending On LBRY',
|
||||||
link: `/$/${PAGES.DISCOVER}`,
|
link: `/$/${PAGES.DISCOVER}`,
|
||||||
|
|
Loading…
Add table
Reference in a new issue