fix: not show from market bundle package icon

This commit is contained in:
Joel
2024-11-26 14:07:45 +08:00
parent b84b0c8ba8
commit 4b77ced4ad
5 changed files with 14 additions and 0 deletions

View File

@ -11,12 +11,14 @@ type Props = {
checked: boolean
onCheckedChange: (plugin: Plugin) => void
payload: PackageDependency
isFromMarketPlace?: boolean
}
const PackageItem: FC<Props> = ({
payload,
checked,
onCheckedChange,
isFromMarketPlace,
}) => {
if (!payload.value?.manifest)
return <LoadingError />
@ -27,6 +29,7 @@ const PackageItem: FC<Props> = ({
payload={plugin}
checked={checked}
onCheckedChange={onCheckedChange}
isFromMarketPlace={isFromMarketPlace}
/>
)
}