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.
TypeScript appcrdteditorelectronknowledge-basemarkdownmironotesnotionnotion-alternativerustrust-langrust-languagetabletableviewwhiteboardwikiworkspace
fix: disabled form item in the settings can still be operated via keyboard (#4605)
electron97c1d386d932a3
diff --git a/apps/core/src/components/affine/new-workspace-setting-detail/publish.tsx b/apps/core/src/components/affine/new-workspace-setting-detail/publish.tsxindex 29ec364b81..c5236059e7 100644--- a/apps/core/src/components/affine/new-workspace-setting-detail/publish.tsx+++ b/apps/core/src/components/affine/new-workspace-setting-detail/publish.tsx@@ -12,6 +12,7 @@ import { useAFFiNEI18N } from '@affine/i18n/hooks';import { Button } from '@toeverything/components/button';import { Tooltip } from '@toeverything/components/tooltip';import { useBlockSuiteWorkspaceName } from '@toeverything/hooks/use-block-suite-workspace-name';+import { noop } from 'foxact/noop';import { useCallback, useEffect, useMemo, useState } from 'react';import { toast } from '../../../utils';@@ -100,7 +101,7 @@ const FakePublishPanelAffine = (_props: FakePublishPanelAffineProps) => {<Tooltip content={t['com.affine.settings.workspace.publish-tooltip']()}><div className={style.fakeWrapper}><SettingRow name={t['Publish']()} desc={t['Unpublished hint']()}>- <Switch checked={false} />+ <Switch checked={false} onChange={noop} /></SettingRow></div></Tooltip>