mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-03 18:40:00 +08:00
feat(core): add doc grant feature to share menu (#9672)
This commit is contained in:
+2
-2
@@ -1,7 +1,7 @@
|
||||
import { IconButton, MobileMenu } from '@affine/component';
|
||||
import { SharePage } from '@affine/core/components/affine/share-page-modal/share-menu/share-page';
|
||||
import { useEnableCloud } from '@affine/core/components/hooks/affine/use-enable-cloud';
|
||||
import { DocService } from '@affine/core/modules/doc';
|
||||
import { ShareMenuContent } from '@affine/core/modules/share-menu';
|
||||
import { WorkspaceService } from '@affine/core/modules/workspace';
|
||||
import { ShareiOsIcon } from '@blocksuite/icons/rc';
|
||||
import { useServices } from '@toeverything/infra';
|
||||
@@ -25,7 +25,7 @@ export const PageHeaderShareButton = () => {
|
||||
<MobileMenu
|
||||
items={
|
||||
<div className={styles.content}>
|
||||
<SharePage
|
||||
<ShareMenuContent
|
||||
workspaceMetadata={workspace.meta}
|
||||
currentPage={doc}
|
||||
onEnableAffineCloud={() =>
|
||||
|
||||
Reference in New Issue
Block a user