mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-18 11:11:34 +03:00
Merge pull request #100 from toeverything/fix/disable-reading-mode
fix: disable reading mode
This commit is contained in:
commit
96dd670621
@ -9,7 +9,7 @@ import {
|
||||
importWorkspace,
|
||||
exportWorkspace,
|
||||
useWorkspaceAndPageId,
|
||||
useReadingMode,
|
||||
// useReadingMode,
|
||||
clearWorkspace,
|
||||
} from './util';
|
||||
|
||||
@ -63,20 +63,20 @@ export const useSettings = (): SettingItem[] => {
|
||||
const { workspaceId, pageId } = useWorkspaceAndPageId();
|
||||
const navigate = useNavigate();
|
||||
const settingFlags = useSettingFlags();
|
||||
const { toggleReadingMode, readingMode } = useReadingMode();
|
||||
// const { toggleReadingMode, readingMode } = useReadingMode();
|
||||
|
||||
const settings: SettingItem[] = [
|
||||
{
|
||||
type: 'switch',
|
||||
name: 'Reading Mode',
|
||||
value: readingMode,
|
||||
onChange: () => {
|
||||
toggleReadingMode();
|
||||
},
|
||||
},
|
||||
{
|
||||
type: 'separator',
|
||||
},
|
||||
// {
|
||||
// type: 'switch',
|
||||
// name: 'Reading Mode',
|
||||
// value: readingMode,
|
||||
// onChange: () => {
|
||||
// toggleReadingMode();
|
||||
// },
|
||||
// },
|
||||
// {
|
||||
// type: 'separator',
|
||||
// },
|
||||
{
|
||||
type: 'button',
|
||||
name: 'Duplicate Page',
|
||||
|
Loading…
Reference in New Issue
Block a user