🔗 fix: update PlanTag link paths for subscription settings

- Change the link paths in PlanTag component to direct users to '/settings/plans' and '/settings/usage' based on the isFree flag, improving navigation consistency.
This commit is contained in:
YuTengjing
2025-12-31 15:04:47 +08:00
parent f5314c5c32
commit ada71d386d
+1 -4
View File
@@ -38,10 +38,7 @@ const PlanTag = memo<PlanTagProps>(({ type = PlanType.Preview }) => {
<Link
style={{ cursor: 'pointer' }}
target={isDesktop ? '_blank' : undefined}
to={urlJoin(
isDesktop ? OFFICIAL_URL : '/',
isFree ? '/subscription/plans' : '/subscription/usage',
)}
to={urlJoin(isDesktop ? OFFICIAL_URL : '/', isFree ? '/settings/plans' : '/settings/usage')}
>
<PlanIcon plan={type} size={22} type={'tag'} />
</Link>