mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-15 06:33:55 +01:00
Remove uses of editor scope values (#23312)
GitOrigin-RevId: 97e2188bc1363618b60f722fa317a5b240d5013b
This commit is contained in:
@@ -34,7 +34,6 @@ export const EditorContext = createContext<
|
||||
submitBtnHtml?: string
|
||||
}
|
||||
hasPremiumCompile?: boolean
|
||||
loading?: boolean
|
||||
renameProject: (newName: string) => void
|
||||
setPermissionsLevel: (permissionsLevel: PermissionsLevel) => void
|
||||
showSymbolPalette?: boolean
|
||||
@@ -84,7 +83,6 @@ export const EditorProvider: FC = ({ children }) => {
|
||||
)
|
||||
}, [])
|
||||
|
||||
const [loading] = useScopeValue('state.loading')
|
||||
const [projectName, setProjectName] = useScopeValue('project.name')
|
||||
const [permissionsLevel, setPermissionsLevel] =
|
||||
useScopeValue('permissionsLevel')
|
||||
@@ -188,7 +186,6 @@ export const EditorProvider: FC = ({ children }) => {
|
||||
() => ({
|
||||
cobranding,
|
||||
hasPremiumCompile: features?.compileGroup === 'priority',
|
||||
loading,
|
||||
renameProject,
|
||||
permissionsLevel: outOfSync ? 'readOnly' : permissionsLevel,
|
||||
setPermissionsLevel,
|
||||
@@ -215,7 +212,6 @@ export const EditorProvider: FC = ({ children }) => {
|
||||
features?.compileGroup,
|
||||
owner,
|
||||
userId,
|
||||
loading,
|
||||
renameProject,
|
||||
permissionsLevel,
|
||||
setPermissionsLevel,
|
||||
|
||||
Reference in New Issue
Block a user