mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-09 19:06:51 +08:00
feat: add billing switch. (#1789)
Co-authored-by: StyleZhang <jasonapring2015@outlook.com>
This commit is contained in:
@@ -31,7 +31,6 @@ import { Colors } from '@/app/components/base/icons/src/vender/line/editor'
|
||||
import { Colors as ColorsSolid } from '@/app/components/base/icons/src/vender/solid/editor'
|
||||
import useBreakpoints, { MediaType } from '@/hooks/use-breakpoints'
|
||||
import { useProviderContext } from '@/context/provider-context'
|
||||
import { IS_CE_EDITION } from '@/config'
|
||||
|
||||
const iconClassName = `
|
||||
w-4 h-4 ml-3 mr-2
|
||||
@@ -59,7 +58,7 @@ export default function AccountSetting({
|
||||
}: IAccountSettingProps) {
|
||||
const [activeMenu, setActiveMenu] = useState(activeTab)
|
||||
const { t } = useTranslation()
|
||||
const { enableBilling } = useProviderContext()
|
||||
const { enableBilling, enableReplaceWebAppLogo } = useProviderContext()
|
||||
|
||||
const workplaceGroupItems = (() => {
|
||||
return [
|
||||
@@ -101,7 +100,7 @@ export default function AccountSetting({
|
||||
activeIcon: <Webhooks className={iconClassName} />,
|
||||
},
|
||||
{
|
||||
key: IS_CE_EDITION ? false : 'custom',
|
||||
key: (enableReplaceWebAppLogo || enableBilling) ? 'custom' : false,
|
||||
name: t('custom.custom'),
|
||||
icon: <Colors className={iconClassName} />,
|
||||
activeIcon: <ColorsSolid className={iconClassName} />,
|
||||
|
||||
Reference in New Issue
Block a user