mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-23 05:25:53 +08:00
merge branch develop into branch feat/doublelink220820
This commit is contained in:
@@ -11,6 +11,7 @@ import {
|
||||
useShowSettingsSidebar,
|
||||
} from '@toeverything/datasource/state';
|
||||
import { useCallback, useMemo } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { EditorBoardSwitcher } from './EditorBoardSwitcher';
|
||||
import { FileSystem, fsApiSupported } from './FileSystem';
|
||||
import { CurrentPageTitle } from './Title';
|
||||
@@ -19,16 +20,17 @@ export const LayoutHeader = () => {
|
||||
const [isLocalWorkspace] = useLocalTrigger();
|
||||
const { toggleSettingsSidebar: toggleInfoSidebar, showSettingsSidebar } =
|
||||
useShowSettingsSidebar();
|
||||
const { t } = useTranslation();
|
||||
|
||||
const warningTips = useMemo(() => {
|
||||
if (!fsApiSupported()) {
|
||||
return 'Welcome to the AFFiNE demo. To begin saving changes you can SYNC DATA TO DISK with the latest version of Chromium based browser like Chrome/Edge';
|
||||
return t('WarningTips.IsNotfsApiSupported');
|
||||
} else if (!isLocalWorkspace) {
|
||||
return 'Welcome to the AFFiNE demo. To begin saving changes you can SYNC TO DISK.';
|
||||
return t('WarningTips.IsNotLocalWorkspace');
|
||||
} else {
|
||||
return 'AFFiNE is under active development and the current version is UNSTABLE. Please DO NOT store information or data';
|
||||
return t('WarningTips.DoNotStore');
|
||||
}
|
||||
}, [isLocalWorkspace]);
|
||||
}, [isLocalWorkspace, t]);
|
||||
|
||||
const { currentEditors } = useCurrentEditors();
|
||||
|
||||
@@ -50,7 +52,7 @@ export const LayoutHeader = () => {
|
||||
<FlexContainer>
|
||||
<StyledHelper>
|
||||
<FileSystem />
|
||||
<StyledShare disabled={true}>Share</StyledShare>
|
||||
<StyledShare disabled={true}>{t('Share')}</StyledShare>
|
||||
<div style={{ margin: '0px 12px' }}>
|
||||
<IconButton
|
||||
size="large"
|
||||
|
||||
Reference in New Issue
Block a user