Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

fix: disable legacy cloud in header

himself65c6be29f944cc
diff --git a/apps/web/src/components/blocksuite/workspace-header/header-right-items/ShareMenu.tsx b/apps/web/src/components/blocksuite/workspace-header/header-right-items/ShareMenu.tsx
index 9ed30f23b8..672c7ad7b7 100644
--- a/apps/web/src/components/blocksuite/workspace-header/header-right-items/ShareMenu.tsx
+++ b/apps/web/src/components/blocksuite/workspace-header/header-right-items/ShareMenu.tsx
@@ -1,4 +1,5 @@
import { ShareMenu } from '@affine/component/share-menu';
+import { config } from '@affine/env';
import type { AffineWorkspace, LocalWorkspace } from '@affine/workspace/type';
import { WorkspaceFlavour } from '@affine/workspace/type';
import type { Page } from '@blocksuite/store';
@@ -107,6 +108,9 @@ const LocalHeaderShareMenu: React.FC<BaseHeaderProps> = props => {
};
export const HeaderShareMenu: React.FC<BaseHeaderProps> = props => {
+ if (!config.enableLegacyCloud) {
+ return null;
+ }
if (props.workspace.flavour === WorkspaceFlavour.AFFINE) {
return <AffineHeaderShareMenu {...props} />;
} else if (props.workspace.flavour === WorkspaceFlavour.LOCAL) {