From 33be7f828bb65d2254b9497a959d7e4b5761c3cc Mon Sep 17 00:00:00 2001 From: Adorian Doran Date: Thu, 6 Nov 2025 00:24:27 +0200 Subject: [PATCH] client/read only note info bar: fix file name --- apps/client/src/layouts/desktop_layout.tsx | 2 +- apps/client/src/layouts/mobile_layout.tsx | 2 +- ...{read-only-note-info-bar.css => read-only-note-info_bar.css} | 0 ...{read_only_note_info-bar.tsx => read_only_note_info_bar.tsx} | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) rename apps/client/src/widgets/{read-only-note-info-bar.css => read-only-note-info_bar.css} (100%) rename apps/client/src/widgets/{read_only_note_info-bar.tsx => read_only_note_info_bar.tsx} (98%) diff --git a/apps/client/src/layouts/desktop_layout.tsx b/apps/client/src/layouts/desktop_layout.tsx index a584ccd5e..aed35107e 100644 --- a/apps/client/src/layouts/desktop_layout.tsx +++ b/apps/client/src/layouts/desktop_layout.tsx @@ -23,7 +23,7 @@ import options from "../services/options.js"; import PasswordNoteSetDialog from "../widgets/dialogs/password_not_set.js"; import PromotedAttributesWidget from "../widgets/promoted_attributes.js"; import QuickSearchWidget from "../widgets/quick_search.js"; -import ReadOnlyNoteInfoBar from "../widgets/read_only_note_info-bar.jsx"; +import ReadOnlyNoteInfoBar from "../widgets/read_only_note_info_bar.jsx"; import Ribbon from "../widgets/ribbon/Ribbon.jsx"; import RightPaneContainer from "../widgets/containers/right_pane_container.js"; import RootContainer from "../widgets/containers/root_container.js"; diff --git a/apps/client/src/layouts/mobile_layout.tsx b/apps/client/src/layouts/mobile_layout.tsx index e7fc93b27..133d139fd 100644 --- a/apps/client/src/layouts/mobile_layout.tsx +++ b/apps/client/src/layouts/mobile_layout.tsx @@ -16,7 +16,7 @@ import NoteTreeWidget from "../widgets/note_tree.js"; import NoteWrapperWidget from "../widgets/note_wrapper.js"; import PromotedAttributesWidget from "../widgets/promoted_attributes.js"; import QuickSearchWidget from "../widgets/quick_search.js"; -import ReadOnlyNoteInfoBar from "../widgets/read_only_note_info-bar.jsx"; +import ReadOnlyNoteInfoBar from "../widgets/read_only_note_info_bar.jsx"; import RootContainer from "../widgets/containers/root_container.js"; import ScreenContainer from "../widgets/mobile_widgets/screen_container.js"; import ScrollingContainer from "../widgets/containers/scrolling_container.js"; diff --git a/apps/client/src/widgets/read-only-note-info-bar.css b/apps/client/src/widgets/read-only-note-info_bar.css similarity index 100% rename from apps/client/src/widgets/read-only-note-info-bar.css rename to apps/client/src/widgets/read-only-note-info_bar.css diff --git a/apps/client/src/widgets/read_only_note_info-bar.tsx b/apps/client/src/widgets/read_only_note_info_bar.tsx similarity index 98% rename from apps/client/src/widgets/read_only_note_info-bar.tsx rename to apps/client/src/widgets/read_only_note_info_bar.tsx index 662fc2ac4..b34ed6099 100644 --- a/apps/client/src/widgets/read_only_note_info-bar.tsx +++ b/apps/client/src/widgets/read_only_note_info_bar.tsx @@ -35,7 +35,7 @@ export default function ReadOnlyNoteInfoBar() { ; } -function useIsReadOnly() { +export function useIsReadOnly() { const {note, noteContext} = useNoteContext(); const [isReadOnly, setIsReadOnly] = useState(false);