Skip to content

Commit

Permalink
chore: update link
Browse files Browse the repository at this point in the history
  • Loading branch information
chenos committed Jun 24, 2024
1 parent 8dd8303 commit e69d33a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
8 changes: 4 additions & 4 deletions packages/core/client/src/powered-by/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
*/

import { css, cx } from '@emotion/css';
import { parseHTML } from '@nocobase/utils/client';
import React from 'react';
import { useTranslation } from 'react-i18next';
import { useToken } from '../style';
import { usePlugin } from '../application';
import { parseHTML } from '@nocobase/utils/client';
import { useCurrentAppInfo } from '../appInfo/CurrentAppInfoProvider';
import { usePlugin } from '../application';
import { useToken } from '../style';

export const PoweredBy = () => {
const { i18n } = useTranslation();
Expand All @@ -22,7 +22,7 @@ export const PoweredBy = () => {
const data = useCurrentAppInfo();
const urls = {
'en-US': 'https://www.nocobase.com',
'zh-CN': 'https://cn.nocobase.com',
'zh-CN': 'https://www.nocobase.com/cn/',
};
const style = css`
text-align: center;
Expand Down
8 changes: 2 additions & 6 deletions packages/core/client/src/user/Help.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const SettingsMenu: React.FC<{
key: 'homePage',
label: (
<a
href={isSimplifiedChinese ? 'https://cn.nocobase.com/' : 'https://www.nocobase.com'}
href={isSimplifiedChinese ? 'https://www.nocobase.com/cn/' : 'https://www.nocobase.com'}
target="_blank"
rel="noreferrer"
>
Expand All @@ -73,11 +73,7 @@ const SettingsMenu: React.FC<{
key: 'license',
label: (
<a
href={
isSimplifiedChinese
? 'https://cn.nocobase.com/agreement-cn.html'
: 'https://www.nocobase.com/agreement.html'
}
href={isSimplifiedChinese ? 'https://www.nocobase.com/cn/agreement' : 'https://www.nocobase.com/en/agreement'}
target="_blank"
rel="noreferrer"
>
Expand Down

0 comments on commit e69d33a

Please sign in to comment.