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) {
|
||||
const { followedTags, subscribedChannels, authenticated } = props;
|
||||
const showAuthenticatedRows = authenticated || !IS_WEB;
|
||||
let rowData: Array<RowDataItem> = [];
|
||||
|
||||
if (!authenticated) {
|
||||
if (!showAuthenticatedRows) {
|
||||
rowData.push(
|
||||
{
|
||||
title: 'Trending On LBRY',
|
||||
|
@ -43,7 +44,7 @@ function HomePage(props: Props) {
|
|||
);
|
||||
}
|
||||
|
||||
if (authenticated) {
|
||||
if (showAuthenticatedRows) {
|
||||
if (subscribedChannels && subscribedChannels.length > 0) {
|
||||
rowData.push({
|
||||
title: 'Recent From Following',
|
||||
|
@ -134,7 +135,7 @@ function HomePage(props: Props) {
|
|||
}
|
||||
);
|
||||
|
||||
if (!authenticated) {
|
||||
if (!showAuthenticatedRows) {
|
||||
rowData.push({
|
||||
title: '#lbry',
|
||||
link: `/$/${PAGES.TAGS}?t=lbry&type=top&time=all`,
|
||||
|
@ -146,7 +147,7 @@ function HomePage(props: Props) {
|
|||
});
|
||||
}
|
||||
|
||||
if (authenticated) {
|
||||
if (showAuthenticatedRows) {
|
||||
rowData.push({
|
||||
title: 'Trending On LBRY',
|
||||
link: `/$/${PAGES.DISCOVER}`,
|
||||
|
|
Loading…
Reference in a new issue