refactor: component manager usecases (#2354)

This commit is contained in:
Mo
2023-07-13 05:46:52 -05:00
committed by GitHub
parent ecc5b5e503
commit 2c68ea1d76
52 changed files with 1454 additions and 1078 deletions

View File

@@ -66,7 +66,7 @@ const NewNotePreferences: FunctionComponent<Props> = ({
const [customNoteTitleFormat, setCustomNoteTitleFormat] = useState('')
const getGlobalEditorDefaultIdentifier = useCallback((): string => {
return application.geDefaultEditorIdentifier()
return application.componentManager.getDefaultEditorIdentifier()
}, [application])
const reloadPreferences = useCallback(() => {