pin from homepages #6654
3 changed files with 4 additions and 3 deletions
2
flow-typed/homepage.js
vendored
2
flow-typed/homepage.js
vendored
|
@ -17,7 +17,7 @@ declare type RowDataItem = {
|
||||||
help?: any,
|
help?: any,
|
||||||
icon?: string,
|
icon?: string,
|
||||||
extra?: any,
|
extra?: any,
|
||||||
pinUrls?: Array<string>,
|
pinnedUrls?: Array<string>,
|
||||||
options?: {
|
options?: {
|
||||||
channelIds?: Array<string>,
|
channelIds?: Array<string>,
|
||||||
limitClaimsPerChannel?: number,
|
limitClaimsPerChannel?: number,
|
||||||
|
|
|
@ -145,7 +145,7 @@ function HomePage(props: Props) {
|
||||||
{/* @if TARGET='web' */}
|
{/* @if TARGET='web' */}
|
||||||
{SIMPLE_SITE && <Meme />}
|
{SIMPLE_SITE && <Meme />}
|
||||||
{/* @endif */}
|
{/* @endif */}
|
||||||
{rowData.map(({ title, route, link, icon, help, pinUrls, options = {} }, index) => {
|
{rowData.map(({ title, route, link, icon, help, pinnedUrls: pinUrls, options = {} }, index) => {
|
||||||
// add pins here
|
// add pins here
|
||||||
return getRowElements(title, route, link, icon, help, options, index, pinUrls);
|
return getRowElements(title, route, link, icon, help, options, index, pinUrls);
|
||||||
})}
|
})}
|
||||||
|
|
|
@ -106,6 +106,7 @@ export const getHomepageRowForCat = (cat: HomepageCat) => {
|
||||||
route: cat.name ? `/$/${cat.name}` : undefined,
|
route: cat.name ? `/$/${cat.name}` : undefined,
|
||||||
icon: cat.icon || '', // some default
|
icon: cat.icon || '', // some default
|
||||||
title: cat.label,
|
title: cat.label,
|
||||||
|
pinnedUrls: cat.pinnedUrls,
|
||||||
options: {
|
options: {
|
||||||
claimType: cat.claimType || 'stream',
|
claimType: cat.claimType || 'stream',
|
||||||
channelIds: cat.channelIds,
|
channelIds: cat.channelIds,
|
||||||
|
|
Loading…
Reference in a new issue