mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-07 22:49:26 +08:00
fix: change License link (#4415)
This commit is contained in:
parent
48fdec6ff3
commit
f236e6d29d
@ -9,13 +9,13 @@
|
|||||||
|
|
||||||
import { QuestionCircleOutlined } from '@ant-design/icons';
|
import { QuestionCircleOutlined } from '@ant-design/icons';
|
||||||
import { css } from '@emotion/css';
|
import { css } from '@emotion/css';
|
||||||
|
import { observer } from '@formily/reactive-react';
|
||||||
|
import { parseHTML } from '@nocobase/utils/client';
|
||||||
import { Dropdown, Menu, Popover } from 'antd';
|
import { Dropdown, Menu, Popover } from 'antd';
|
||||||
import React, { useState } from 'react';
|
import React, { useState } from 'react';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import { DropdownVisibleContext, usePlugin, useToken } from '..';
|
import { DropdownVisibleContext, usePlugin, useToken } from '..';
|
||||||
import { useCurrentAppInfo } from '../appInfo/CurrentAppInfoProvider';
|
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
|
* @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',
|
key: 'license',
|
||||||
label: (
|
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')}
|
{t('License')}
|
||||||
</a>
|
</a>
|
||||||
),
|
),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user