mirror of
https://github.com/lobehub/lobe-chat.git
synced 2026-06-15 04:00:09 +00:00
🔗 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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user