diff --git a/apps/web/src/components/affine/workspace-setting-detail/panel/publish/index.tsx b/apps/web/src/components/affine/workspace-setting-detail/panel/publish/index.tsx index 89fa202e15..003826d776 100644 --- a/apps/web/src/components/affine/workspace-setting-detail/panel/publish/index.tsx +++ b/apps/web/src/components/affine/workspace-setting-detail/panel/publish/index.tsx @@ -17,7 +17,6 @@ import { LocalWorkspace, RemWorkspaceFlavour, } from '../../../../../shared'; -import { apis } from '../../../../../shared/apis'; import { Unreachable } from '../../../affine-error-eoundary'; import { EnableAffineCloudModal } from '../../../enable-affine-cloud-modal'; import { WorkspaceSettingDetailProps } from '../../index'; @@ -49,8 +48,6 @@ const PublishPanelAffine: React.FC = ({ toast(t('Copied link to clipboard')); }, [shareUrl, t]); - const [open, setOpen] = useState(false); - if (workspace.public) { return ( <> @@ -89,27 +86,13 @@ const PublishPanelAffine: React.FC = ({ {t('Publishing Description')} - { - setOpen(false); - }} - onConfirm={() => { - if (!apis.auth.isLogin) { - toast(t('Please login first')); - } else { - publishWorkspace(true); - setOpen(false); - } - }} - /> ); };