Skip to content

Commit

Permalink
fix: change License link (#4415)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangzhonghe committed May 20, 2024
1 parent 48fdec6 commit f236e6d
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions packages/core/client/src/user/Help.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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>
),
Expand Down

0 comments on commit f236e6d

Please sign in to comment.