diff --git a/web/app/components/header/account-dropdown/index.tsx b/web/app/components/header/account-dropdown/index.tsx
index bae936ede3..a8cd48ca91 100644
--- a/web/app/components/header/account-dropdown/index.tsx
+++ b/web/app/components/header/account-dropdown/index.tsx
@@ -106,17 +106,17 @@ export default function AppSelector({ isMobile }: IAppSelector) {
)}
href='/account'
target='_self' rel='noopener noreferrer'>
-
-
{t('common.account.account')}
-
+
+ {t('common.account.account')}
+
}
{({ active }) => setShowAccountSettingModal({ payload: 'members' })}>
-
-
{t('common.userProfile.settings')}
+
+
{t('common.userProfile.settings')}
}
@@ -130,9 +130,9 @@ export default function AppSelector({ isMobile }: IAppSelector) {
locale !== LanguagesSupported[1] ? 'https://docs.dify.ai/' : `https://docs.dify.ai/v/${locale.toLowerCase()}/`
}
target='_blank' rel='noopener noreferrer'>
-
- {t('common.userProfile.helpCenter')}
-
+
+ {t('common.userProfile.helpCenter')}
+
}
@@ -146,9 +146,9 @@ export default function AppSelector({ isMobile }: IAppSelector) {
)}
href='https://roadmap.dify.ai'
target='_blank' rel='noopener noreferrer'>
-
- {t('common.userProfile.roadmap')}
-
+
+ {t('common.userProfile.roadmap')}
+
}
{systemFeatures.license.status === LicenseStatus.NONE &&
@@ -156,12 +156,12 @@ export default function AppSelector({ isMobile }: IAppSelector) {
className={classNames(itemClassName, 'group justify-between',
active && 'bg-state-base-hover',
)}
- href='https://github.com/langgenius/dify/stargazers'
+ href='https://github.com/langgenius/dify'
target='_blank' rel='noopener noreferrer'>
-
- {t('common.userProfile.github')}
+
+ {t('common.userProfile.github')}
-
+
}
@@ -172,9 +172,9 @@ export default function AppSelector({ isMobile }: IAppSelector) {
{({ active }) => setAboutVisible(true)}>
-
-
{t('common.userProfile.about')}
-
+
+
{t('common.userProfile.about')}
+
{langeniusVersionInfo.current_version}
@@ -190,8 +190,8 @@ export default function AppSelector({ isMobile }: IAppSelector) {
active && 'bg-state-base-hover',
)}
>
-
-
{t('common.userProfile.logout')}
+
+
{t('common.userProfile.logout')}
}
diff --git a/web/app/components/header/account-dropdown/workplace-selector/index.tsx b/web/app/components/header/account-dropdown/workplace-selector/index.tsx
index 5fbf59b9c2..fde48a292b 100644
--- a/web/app/components/header/account-dropdown/workplace-selector/index.tsx
+++ b/web/app/components/header/account-dropdown/workplace-selector/index.tsx
@@ -71,7 +71,7 @@ const WorkplaceSelector = () => {
handleSwitchWorkspace(workspace.id)}>
{workspace.name[0].toLocaleUpperCase()}
{workspace.name}
-
+
))
}
diff --git a/web/app/components/header/plan-badge/index.tsx b/web/app/components/header/plan-badge/index.tsx
index bbf90bd3e9..07f798a9af 100644
--- a/web/app/components/header/plan-badge/index.tsx
+++ b/web/app/components/header/plan-badge/index.tsx
@@ -1,5 +1,4 @@
import { useProviderContext } from '@/context/provider-context'
-import classNames from '@/utils/classnames'
import type { FC } from 'react'
import { useTranslation } from 'react-i18next'
import { SparklesSoft } from '../../base/icons/src/public/common'
@@ -8,13 +7,12 @@ import { Plan } from '../../billing/type'
type PlanBadgeProps = {
plan: Plan
- size?: 's' | 'm'
allowHover?: boolean
sandboxAsUpgrade?: boolean
onClick?: () => void
}
-const PlanBadge: FC = ({ plan, allowHover, size = 'm', sandboxAsUpgrade = false, onClick }) => {
+const PlanBadge: FC = ({ plan, allowHover, sandboxAsUpgrade = false, onClick }) => {
const { isFetchedPlan } = useProviderContext()
const { t } = useTranslation()
@@ -30,8 +28,8 @@ const PlanBadge: FC = ({ plan, allowHover, size = 'm', sandboxAs
}
if (plan === Plan.sandbox) {
- return
-
+ return
+
{plan}
@@ -39,8 +37,8 @@ const PlanBadge: FC
= ({ plan, allowHover, size = 'm', sandboxAs
}
if (plan === Plan.professional) {
- return
-
+ return
+
pro
@@ -48,8 +46,8 @@ const PlanBadge: FC
= ({ plan, allowHover, size = 'm', sandboxAs
}
if (plan === Plan.team) {
- return
-