From 5f92ccbf4777ab87c869c68984f7f634bd31a377 Mon Sep 17 00:00:00 2001 From: infinite-persistence Date: Mon, 28 Feb 2022 18:02:47 +0800 Subject: [PATCH] ClaimListDiscover: add subSection area This will be an additional area under Header/Meta that clients can put anything with. Primary impetus is to place the Livestream Tiles in Wild West. --- ui/component/claimListDiscover/view.jsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ui/component/claimListDiscover/view.jsx b/ui/component/claimListDiscover/view.jsx index f64872d27..9e136ccd8 100644 --- a/ui/component/claimListDiscover/view.jsx +++ b/ui/component/claimListDiscover/view.jsx @@ -76,6 +76,7 @@ type Props = { hiddenNsfwMessage?: Node, injectedItem: ?Node, meta?: Node, + subSection?: Node, // Additional section below [Header|Meta] renderProperties?: (Claim) => Node, history: { action: string, push: (string) => void, replace: (string) => void }, @@ -118,6 +119,7 @@ function ClaimListDiscover(props: Props) { defaultTags, loading, meta, + subSection, channelIds, showNsfw, hideReposts, @@ -651,6 +653,7 @@ function ClaimListDiscover(props: Props) { {meta &&
{meta}
} )} + {subSection &&
{subSection}
} {meta}} )} + {subSection &&
{subSection}
}