mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 06:03:45 +01:00
Fix wrong hook name
GitOrigin-RevId: 58f98b508cf650a6ecab38772faf9ecd38c9a7bc
This commit is contained in:
+2
-2
@@ -1,6 +1,6 @@
|
||||
import { createContext, useContext, useMemo } from 'react'
|
||||
import type { PropsWithChildren } from 'react'
|
||||
import useSetProjectWideSettings from '../hooks/use-set-project-wide-settings'
|
||||
import useProjectWideSettings from '../hooks/use-project-wide-settings'
|
||||
import useUserWideSettings from '../hooks/use-user-wide-settings'
|
||||
import useProjectWideSettingsSocketListener from '../hooks/use-project-wide-settings-socket-listener'
|
||||
import type { ProjectSettingsScope, UserSettingsScope } from '../utils/api'
|
||||
@@ -48,7 +48,7 @@ export function ProjectSettingsProvider({
|
||||
setRootDocId,
|
||||
spellCheckLanguage,
|
||||
setSpellCheckLanguage,
|
||||
} = useSetProjectWideSettings()
|
||||
} = useProjectWideSettings()
|
||||
|
||||
const {
|
||||
autoComplete,
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@ import { ProjectSettingsScope, saveProjectSettings } from '../utils/api'
|
||||
import useSetRootDocId from './use-set-root-doc-id'
|
||||
import useSetSpellCheckLanguage from './use-set-spell-check-language'
|
||||
|
||||
export default function useSetProjectWideSettings() {
|
||||
export default function useProjectWideSettings() {
|
||||
// The value will be undefined on mount
|
||||
const [project, setProject] = useScopeValue<ProjectSettingsScope | undefined>(
|
||||
'project',
|
||||
Reference in New Issue
Block a user