feat(note_actions): hide code notes from new layout

This commit is contained in:
Elian Doran
2025-12-13 01:24:37 +02:00
parent 7d2a1bb2e5
commit 447e09fec1
2 changed files with 16 additions and 5 deletions

View File

@@ -184,11 +184,16 @@ function EditabilityDropdown({ note }: { note: FNote }) {
function NoteTypeDropdown({ note }: { note: FNote }) {
const currentNoteType = useNoteProperty(note, "type") ?? undefined;
const currentNoteMime = useNoteProperty(note, "mime");
const [ modalShown, setModalShown ] = useState(false);
return (
<FormDropdownSubmenu title={t("basic_properties.note_type")} icon="bx bx-file" dropStart>
<NoteTypeDropdownContent currentNoteType={currentNoteType} currentNoteMime={currentNoteMime} note={note} setModalShown={setModalShown} />
<NoteTypeDropdownContent
currentNoteType={currentNoteType}
currentNoteMime={currentNoteMime}
note={note}
setModalShown={() => { /* no-op since no code notes are displayed here */ }}
noCodeNotes
/>
</FormDropdownSubmenu>
);
}