fix: change License link (#4415)

This commit is contained in:
Zeke Zhang 2024-05-20 13:42:54 +08:00 committed by GitHub
parent 48fdec6ff3
commit f236e6d29d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -9,13 +9,13 @@
import { QuestionCircleOutlined } from '@ant-design/icons';
import { css } from '@emotion/css';
import { observer } from '@formily/reactive-react';
import { parseHTML } from '@nocobase/utils/client';
import { Dropdown, Menu, Popover } from 'antd';
import React, { useState } from 'react';
import { useTranslation } from 'react-i18next';
import { DropdownVisibleContext, usePlugin, useToken } from '..';
import { useCurrentAppInfo } from '../appInfo/CurrentAppInfoProvider';
import { observer } from '@formily/reactive-react';
import { parseHTML } from '@nocobase/utils/client';
/**
* @note If you want to change here, Note the Setting block on the mobile side
@ -67,7 +67,14 @@ const SettingsMenu: React.FC<{
{
key: 'license',
label: (
<a href="https://github.com/nocobase/nocobase/blob/main/LICENSE-AGPL" target="__blank">
<a
href={
isSimplifiedChinese
? 'https://cn.nocobase.com/agreement-cn.html'
: 'https://www.nocobase.com/agreement.html'
}
target="__blank"
>
{t('License')}
</a>
),