Skip to content

Commit

Permalink
fix: disabled form item in the settings can still be operated via key…
Browse files Browse the repository at this point in the history
…board (#4605)
  • Loading branch information
electron97 authored Oct 16, 2023
1 parent 710a2f2 commit c1d386d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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>
Expand Down

0 comments on commit c1d386d

Please sign in to comment.