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,
|
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}
|
||||||
|
|
Loading…
Reference in a new issue