mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-20 12:29:17 +08:00
fix: recipt info (#2123)
This commit is contained in:
parent
7434d44412
commit
8eae206715
@ -48,6 +48,7 @@ type IAccountSettingProps = {
|
|||||||
type GroupItem = {
|
type GroupItem = {
|
||||||
key: string
|
key: string
|
||||||
name: string
|
name: string
|
||||||
|
description?: string
|
||||||
icon: JSX.Element
|
icon: JSX.Element
|
||||||
activeIcon: JSX.Element
|
activeIcon: JSX.Element
|
||||||
}
|
}
|
||||||
@ -78,6 +79,7 @@ export default function AccountSetting({
|
|||||||
// Use key false to hide this item
|
// Use key false to hide this item
|
||||||
key: enableBilling ? 'billing' : false,
|
key: enableBilling ? 'billing' : false,
|
||||||
name: t('common.settings.billing'),
|
name: t('common.settings.billing'),
|
||||||
|
description: t('billing.plansCommon.receiptInfo'),
|
||||||
icon: <GoldCoinOutLine className={iconClassName} />,
|
icon: <GoldCoinOutLine className={iconClassName} />,
|
||||||
activeIcon: <GoldCoin className={iconClassName} />,
|
activeIcon: <GoldCoin className={iconClassName} />,
|
||||||
},
|
},
|
||||||
@ -160,6 +162,8 @@ export default function AccountSetting({
|
|||||||
}
|
}
|
||||||
}, [])
|
}, [])
|
||||||
|
|
||||||
|
const activeItem = [...menuItems[0].items, ...menuItems[1].items].find(item => item.key === activeMenu)
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Modal
|
<Modal
|
||||||
isShow
|
isShow
|
||||||
@ -199,10 +203,17 @@ export default function AccountSetting({
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div ref={scrollRef} className='relative w-[824px] h-[720px] pb-4 overflow-y-auto'>
|
<div ref={scrollRef} className='relative w-[824px] h-[720px] pb-4 overflow-y-auto'>
|
||||||
<div className={cn('sticky top-0 px-6 py-4 flex items-center justify-between h-14 mb-4 bg-white text-base font-medium text-gray-900 z-20', scrolled && scrolledClassName)}>
|
<div className={cn('sticky top-0 px-6 py-4 flex items-center h-14 mb-4 bg-white text-base font-medium text-gray-900 z-20', scrolled && scrolledClassName)}>
|
||||||
{[...menuItems[0].items, ...menuItems[1].items].find(item => item.key === activeMenu)?.name}
|
<div className='shrink-0'>{activeItem?.name}</div>
|
||||||
<div className='flex items-center justify-center -mr-4 w-6 h-6 cursor-pointer' onClick={onCancel}>
|
{
|
||||||
<XClose className='w-4 h-4 text-gray-500' />
|
activeItem?.description && (
|
||||||
|
<div className='shrink-0 ml-2 text-xs text-gray-600'>{activeItem?.description}</div>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
<div className='grow flex justify-end'>
|
||||||
|
<div className='flex items-center justify-center -mr-4 w-6 h-6 cursor-pointer' onClick={onCancel}>
|
||||||
|
<XClose className='w-4 h-4 text-gray-400' />
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className='px-4 sm:px-8 pt-2'>
|
<div className='px-4 sm:px-8 pt-2'>
|
||||||
|
@ -68,6 +68,7 @@ const translation = {
|
|||||||
tooltip: 'Manual editing and annotation of responses provides customizable high-quality question-answering abilities for apps. (Applicable only in chat apps)',
|
tooltip: 'Manual editing and annotation of responses provides customizable high-quality question-answering abilities for apps. (Applicable only in chat apps)',
|
||||||
},
|
},
|
||||||
ragAPIRequestTooltip: 'Refers to the number of API calls invoking only the knowledge base processing capabilities of Dify.',
|
ragAPIRequestTooltip: 'Refers to the number of API calls invoking only the knowledge base processing capabilities of Dify.',
|
||||||
|
receiptInfo: 'Only team owner can subscribe and view billing information',
|
||||||
},
|
},
|
||||||
plans: {
|
plans: {
|
||||||
sandbox: {
|
sandbox: {
|
||||||
|
@ -68,6 +68,7 @@ const translation = {
|
|||||||
tooltip: '标注回复功能通过人工编辑标注为应用提供了可定制的高质量问答回复能力',
|
tooltip: '标注回复功能通过人工编辑标注为应用提供了可定制的高质量问答回复能力',
|
||||||
},
|
},
|
||||||
ragAPIRequestTooltip: '指单独调用 Dify 知识库数据处理能力的 API。',
|
ragAPIRequestTooltip: '指单独调用 Dify 知识库数据处理能力的 API。',
|
||||||
|
receiptInfo: '只有团队所有者才能订阅和查看账单信息',
|
||||||
},
|
},
|
||||||
plans: {
|
plans: {
|
||||||
sandbox: {
|
sandbox: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user