mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-18 11:31:36 +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,
|
importWorkspace,
|
||||||
exportWorkspace,
|
exportWorkspace,
|
||||||
useWorkspaceAndPageId,
|
useWorkspaceAndPageId,
|
||||||
useReadingMode,
|
// useReadingMode,
|
||||||
clearWorkspace,
|
clearWorkspace,
|
||||||
} from './util';
|
} from './util';
|
||||||
|
|
||||||
@ -63,20 +63,20 @@ export const useSettings = (): SettingItem[] => {
|
|||||||
const { workspaceId, pageId } = useWorkspaceAndPageId();
|
const { workspaceId, pageId } = useWorkspaceAndPageId();
|
||||||
const navigate = useNavigate();
|
const navigate = useNavigate();
|
||||||
const settingFlags = useSettingFlags();
|
const settingFlags = useSettingFlags();
|
||||||
const { toggleReadingMode, readingMode } = useReadingMode();
|
// const { toggleReadingMode, readingMode } = useReadingMode();
|
||||||
|
|
||||||
const settings: SettingItem[] = [
|
const settings: SettingItem[] = [
|
||||||
{
|
// {
|
||||||
type: 'switch',
|
// type: 'switch',
|
||||||
name: 'Reading Mode',
|
// name: 'Reading Mode',
|
||||||
value: readingMode,
|
// value: readingMode,
|
||||||
onChange: () => {
|
// onChange: () => {
|
||||||
toggleReadingMode();
|
// toggleReadingMode();
|
||||||
},
|
// },
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
type: 'separator',
|
// type: 'separator',
|
||||||
},
|
// },
|
||||||
{
|
{
|
||||||
type: 'button',
|
type: 'button',
|
||||||
name: 'Duplicate Page',
|
name: 'Duplicate Page',
|
||||||
|
Loading…
Reference in New Issue
Block a user