pull/12372/head
StyleZhang 2 years ago
parent bc43e3a9fe
commit 9025e85ca5

@ -23,6 +23,7 @@ const CardWrapper = ({
<Card <Card
key={plugin.name} key={plugin.name}
payload={plugin} payload={plugin}
locale={locale}
footer={ footer={
<CardMoreInfo <CardMoreInfo
downloadCount={plugin.install_count} downloadCount={plugin.install_count}

@ -27,6 +27,7 @@ const List = ({
marketplaceCollections={marketplaceCollections} marketplaceCollections={marketplaceCollections}
marketplaceCollectionPluginsMap={marketplaceCollectionPluginsMap} marketplaceCollectionPluginsMap={marketplaceCollectionPluginsMap}
showInstallButton={showInstallButton} showInstallButton={showInstallButton}
locale={locale}
/> />
) )
} }

@ -7,11 +7,13 @@ type ListWithCollectionProps = {
marketplaceCollections: MarketplaceCollection[] marketplaceCollections: MarketplaceCollection[]
marketplaceCollectionPluginsMap: Record<string, Plugin[]> marketplaceCollectionPluginsMap: Record<string, Plugin[]>
showInstallButton?: boolean showInstallButton?: boolean
locale?: string
} }
const ListWithCollection = ({ const ListWithCollection = ({
marketplaceCollections, marketplaceCollections,
marketplaceCollectionPluginsMap, marketplaceCollectionPluginsMap,
showInstallButton, showInstallButton,
locale,
}: ListWithCollectionProps) => { }: ListWithCollectionProps) => {
return ( return (
<> <>
@ -30,6 +32,7 @@ const ListWithCollection = ({
key={plugin.name} key={plugin.name}
plugin={plugin} plugin={plugin}
showInstallButton={showInstallButton} showInstallButton={showInstallButton}
locale={locale}
/> />
)) ))
} }

Loading…
Cancel
Save