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, hiddenNsfwMessage?: Node,
injectedItem: ?Node, injectedItem: ?Node,
meta?: Node, meta?: Node,
subSection?: Node, // Additional section below [Header|Meta]
renderProperties?: (Claim) => Node, renderProperties?: (Claim) => Node,
history: { action: string, push: (string) => void, replace: (string) => void }, history: { action: string, push: (string) => void, replace: (string) => void },
@ -118,6 +119,7 @@ function ClaimListDiscover(props: Props) {
defaultTags, defaultTags,
loading, loading,
meta, meta,
subSection,
channelIds, channelIds,
showNsfw, showNsfw,
hideReposts, hideReposts,
@ -651,6 +653,7 @@ function ClaimListDiscover(props: Props) {
{meta && <div className="section__actions--no-margin">{meta}</div>} {meta && <div className="section__actions--no-margin">{meta}</div>}
</div> </div>
)} )}
{subSection && <div>{subSection}</div>}
<ClaimList <ClaimList
tileLayout tileLayout
loading={loading} loading={loading}
@ -691,6 +694,7 @@ function ClaimListDiscover(props: Props) {
{meta && <div className="section__actions--no-margin">{meta}</div>} {meta && <div className="section__actions--no-margin">{meta}</div>}
</div> </div>
)} )}
{subSection && <div>{subSection}</div>}
<ClaimList <ClaimList
type={type} type={type}
loading={loading} loading={loading}