refactor: simplify plugin marketplace link construction in ProviderCard component (#29178)

This commit is contained in:
Wu Tianwei
2025-12-05 13:42:48 +08:00
committed by GitHub
parent e83099e44a
commit b509661b08

View File

@@ -76,7 +76,7 @@ const ProviderCard: FC<Props> = ({
className='grow'
variant='secondary'
>
<a href={`${getPluginLinkInMarketplace(payload)}?language=${locale}${theme ? `&theme=${theme}` : ''}`} target='_blank' className='flex items-center gap-0.5'>
<a href={getPluginLinkInMarketplace(payload, { language: locale, theme })} target='_blank' className='flex items-center gap-0.5'>
{t('plugin.detailPanel.operation.detail')}
<RiArrowRightUpLine className='h-4 w-4' />
</a>