mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-22 20:41:53 +03:00
fix: disabled form item in the settings can still be operated via keyboard (#4605)
This commit is contained in:
parent
710a2f2c97
commit
c1d386d932
@ -12,6 +12,7 @@ import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
|||||||
import { Button } from '@toeverything/components/button';
|
import { Button } from '@toeverything/components/button';
|
||||||
import { Tooltip } from '@toeverything/components/tooltip';
|
import { Tooltip } from '@toeverything/components/tooltip';
|
||||||
import { useBlockSuiteWorkspaceName } from '@toeverything/hooks/use-block-suite-workspace-name';
|
import { useBlockSuiteWorkspaceName } from '@toeverything/hooks/use-block-suite-workspace-name';
|
||||||
|
import { noop } from 'foxact/noop';
|
||||||
import { useCallback, useEffect, useMemo, useState } from 'react';
|
import { useCallback, useEffect, useMemo, useState } from 'react';
|
||||||
|
|
||||||
import { toast } from '../../../utils';
|
import { toast } from '../../../utils';
|
||||||
@ -100,7 +101,7 @@ const FakePublishPanelAffine = (_props: FakePublishPanelAffineProps) => {
|
|||||||
<Tooltip content={t['com.affine.settings.workspace.publish-tooltip']()}>
|
<Tooltip content={t['com.affine.settings.workspace.publish-tooltip']()}>
|
||||||
<div className={style.fakeWrapper}>
|
<div className={style.fakeWrapper}>
|
||||||
<SettingRow name={t['Publish']()} desc={t['Unpublished hint']()}>
|
<SettingRow name={t['Publish']()} desc={t['Unpublished hint']()}>
|
||||||
<Switch checked={false} />
|
<Switch checked={false} onChange={noop} />
|
||||||
</SettingRow>
|
</SettingRow>
|
||||||
</div>
|
</div>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
|
Loading…
Reference in New Issue
Block a user