From 77950e48c76f4a3b29d01831d43039caba29888a Mon Sep 17 00:00:00 2001
From: wwf <1971391498@qq.com>
Date: 星期二, 18 十一月 2025 14:12:42 +0800
Subject: [PATCH] 修改
---
app/components/header/license-env/index.tsx | 17 +++++++----------
1 files changed, 7 insertions(+), 10 deletions(-)
diff --git a/app/components/header/license-env/index.tsx b/app/components/header/license-env/index.tsx
index 86c53d7..800d86d 100644
--- a/app/components/header/license-env/index.tsx
+++ b/app/components/header/license-env/index.tsx
@@ -5,8 +5,6 @@
import { useTranslation } from 'react-i18next'
import { useContextSelector } from 'use-context-selector'
import dayjs from 'dayjs'
-import PremiumBadge from '../../base/premium-badge'
-import { RiHourglass2Fill } from '@remixicon/react'
const LicenseNav = () => {
const { t } = useTranslation()
@@ -15,16 +13,15 @@
if (systemFeatures.license?.status === LicenseStatus.EXPIRING) {
const expiredAt = systemFeatures.license?.expired_at
const count = dayjs(expiredAt).diff(dayjs(), 'days')
- return <PremiumBadge color='orange' className='select-none'>
- <RiHourglass2Fill className='flex size-3 items-center pl-0.5 text-components-premium-badge-indigo-text-stop-0' />
- {count <= 1 && <span className='system-xs-medium px-0.5'>{t('common.license.expiring', { count })}</span>}
- {count > 1 && <span className='system-xs-medium px-0.5'>{t('common.license.expiring_plural', { count })}</span>}
- </PremiumBadge>
+ return <div className='px-2 py-1 mr-4 rounded-full bg-util-colors-orange-orange-50 border-util-colors-orange-orange-100 system-xs-medium text-util-colors-orange-orange-600'>
+ {count <= 1 && <span>{t('common.license.expiring', { count })}</span>}
+ {count > 1 && <span>{t('common.license.expiring_plural', { count })}</span>}
+ </div>
}
if (systemFeatures.license.status === LicenseStatus.ACTIVE) {
- return <PremiumBadge color="indigo" className='select-none'>
- <span className='system-xs-medium px-1'>Enterprise</span>
- </PremiumBadge>
+ return <div className='px-2 py-1 mr-4 rounded-md bg-util-colors-indigo-indigo-50 border-util-colors-indigo-indigo-100 system-xs-medium text-util-colors-indigo-indigo-600'>
+ Enterprise
+ </div>
}
return null
}
--
Gitblit v1.8.0