From 70b95d3a241ef2a13707c0bd787e63a5b8b6f26c Mon Sep 17 00:00:00 2001 From: Philip Molares Date: Fri, 22 Jul 2022 10:04:17 +0200 Subject: [PATCH] refactor: change hook file names to match the rest of the application Signed-off-by: Philip Molares --- src/components/editor-page/editor-page-content.tsx | 6 +++--- ...{useEditorModeFromUrl.ts => use-editor-mode-from-url.ts} | 0 ...calHistoryEntry.ts => use-update-local-history-entry.ts} | 0 .../{useViewModeShortcuts.ts => use-view-mode-shortcuts.ts} | 0 4 files changed, 3 insertions(+), 3 deletions(-) rename src/components/editor-page/hooks/{useEditorModeFromUrl.ts => use-editor-mode-from-url.ts} (100%) rename src/components/editor-page/hooks/{useUpdateLocalHistoryEntry.ts => use-update-local-history-entry.ts} (100%) rename src/components/editor-page/hooks/{useViewModeShortcuts.ts => use-view-mode-shortcuts.ts} (100%) diff --git a/src/components/editor-page/editor-page-content.tsx b/src/components/editor-page/editor-page-content.tsx index 8c2fe30b9..4b8f53c58 100644 --- a/src/components/editor-page/editor-page-content.tsx +++ b/src/components/editor-page/editor-page-content.tsx @@ -11,13 +11,13 @@ import { updateNoteTitleByFirstHeading } from '../../redux/note-details/methods' import { MotdModal } from '../common/motd-modal/motd-modal' import { AppBar, AppBarMode } from './app-bar/app-bar' import { EditorMode } from './app-bar/editor-view-mode' -import { useViewModeShortcuts } from './hooks/useViewModeShortcuts' +import { useViewModeShortcuts } from './hooks/use-view-mode-shortcuts' import { Sidebar } from './sidebar/sidebar' import { Splitter } from './splitter/splitter' import type { DualScrollState, ScrollState } from './synced-scroll/scroll-props' -import { useEditorModeFromUrl } from './hooks/useEditorModeFromUrl' +import { useEditorModeFromUrl } from './hooks/use-editor-mode-from-url' import { UiNotifications } from '../notifications/ui-notifications' -import { useUpdateLocalHistoryEntry } from './hooks/useUpdateLocalHistoryEntry' +import { useUpdateLocalHistoryEntry } from './hooks/use-update-local-history-entry' import { useApplicationState } from '../../hooks/common/use-application-state' import { EditorDocumentRenderer } from './editor-document-renderer/editor-document-renderer' import { Logger } from '../../utils/logger' diff --git a/src/components/editor-page/hooks/useEditorModeFromUrl.ts b/src/components/editor-page/hooks/use-editor-mode-from-url.ts similarity index 100% rename from src/components/editor-page/hooks/useEditorModeFromUrl.ts rename to src/components/editor-page/hooks/use-editor-mode-from-url.ts diff --git a/src/components/editor-page/hooks/useUpdateLocalHistoryEntry.ts b/src/components/editor-page/hooks/use-update-local-history-entry.ts similarity index 100% rename from src/components/editor-page/hooks/useUpdateLocalHistoryEntry.ts rename to src/components/editor-page/hooks/use-update-local-history-entry.ts diff --git a/src/components/editor-page/hooks/useViewModeShortcuts.ts b/src/components/editor-page/hooks/use-view-mode-shortcuts.ts similarity index 100% rename from src/components/editor-page/hooks/useViewModeShortcuts.ts rename to src/components/editor-page/hooks/use-view-mode-shortcuts.ts