fix(layout/inline-title): hide note type switcher on other note types

This commit is contained in:
Elian Doran 2025-12-13 12:49:51 +02:00
parent 470f6e5334
commit 7666f44b7a
No known key found for this signature in database

View File

@ -136,7 +136,7 @@ function NoteTypeSwitcher() {
const currentNoteType = useNoteProperty(note, "type"); const currentNoteType = useNoteProperty(note, "type");
const noteTypes = useMemo(() => NOTE_TYPES.filter((nt) => !nt.reserved && !nt.static), []); const noteTypes = useMemo(() => NOTE_TYPES.filter((nt) => !nt.reserved && !nt.static), []);
return (note && return (note?.type === "text" &&
<div <div
className="note-type-switcher" className="note-type-switcher"
onWheel={onWheelHorizontalScroll} onWheel={onWheelHorizontalScroll}