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.
This commit is contained in:
infinite-persistence 2022-02-28 18:02:47 +08:00 committed by Thomas Zarebczan
parent 6b2d83986b
commit 5f92ccbf47

View file

@ -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 && <div className="section__actions--no-margin">{meta}</div>}
</div>
)}
{subSection && <div>{subSection}</div>}
<ClaimList
tileLayout
loading={loading}
@ -691,6 +694,7 @@ function ClaimListDiscover(props: Props) {
{meta && <div className="section__actions--no-margin">{meta}</div>}
</div>
)}
{subSection && <div>{subSection}</div>}
<ClaimList
type={type}
loading={loading}