This commit is contained in:
StyleZhang 2024-11-06 15:00:37 +08:00
parent bc43e3a9fe
commit 9025e85ca5
3 changed files with 5 additions and 0 deletions

View File

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

View File

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

View File

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