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:
parent
6b2d83986b
commit
5f92ccbf47
1 changed files with 4 additions and 0 deletions
|
@ -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}
|
||||
|
|
Loading…
Reference in a new issue