From 733458214ac6738a3de81e086ec74556555549a6 Mon Sep 17 00:00:00 2001 From: infinite-persistence Date: Tue, 3 Aug 2021 13:58:16 +0800 Subject: [PATCH] --- changelog --- ui/page/home/view.jsx | 62 ++++++++++++++++++++++--------------------- 1 file changed, 32 insertions(+), 30 deletions(-) diff --git a/ui/page/home/view.jsx b/ui/page/home/view.jsx index 19ac2e43b..d9b6e583c 100644 --- a/ui/page/home/view.jsx +++ b/ui/page/home/view.jsx @@ -1,15 +1,13 @@ // @flow import * as ICONS from 'constants/icons'; import * as PAGES from 'constants/pages'; -import { SITE_NAME, SIMPLE_SITE, DOMAIN, ENABLE_NO_SOURCE_CLAIMS } from 'config'; +import { SITE_NAME, SIMPLE_SITE, ENABLE_NO_SOURCE_CLAIMS } from 'config'; import React from 'react'; import Page from 'component/page'; import Button from 'component/button'; import ClaimTilesDiscover from 'component/claimTilesDiscover'; import ClaimPreviewTile from 'component/claimPreviewTile'; import Icon from 'component/common/icon'; -import I18nMessage from 'component/i18nMessage'; -import LbcSymbol from 'component/common/lbc-symbol'; import WaitUntilOnPage from 'component/common/wait-until-on-page'; import useGetLivestreams from 'effects/use-get-livestreams'; import { GetLinksData } from 'util/buildHomepage'; @@ -97,35 +95,39 @@ function HomePage(props: Props) { ); } + const addItem = (title, number) => { + const idIndex = title.lastIndexOf('#'); + if (idIndex === -1) { + return
  • {title}
  • ; + } + + return ( +
  • +
  • + ); + }; + return ( - {IS_WEB && DOMAIN === 'lbry.tv' && ( -
    -

    - , - }} - > - lbry.tv is being retired in favor of %odysee% - -

    -

    - - ), - odysee:

    - )} +
    +

    PRs in this dev instance

    +

    +

      + {addItem('Refactor Commentron error msg handling #6838')} + {addItem('Livestream: implement Pinned Comments #6822')} + {addItem('Settings Page layout changes #6821')} + {addItem('Comment badge to reflect mod and admin status. #6672')} + {addItem('[DRAFT] Fallback image for FileThumbnail #6757')} +
    +

    +
    + +
    {!SIMPLE_SITE && (authenticated || !IS_WEB) && !subscribedChannels.length && (