carnet panel
This commit is contained in:
parent
64ad4d3fdc
commit
1af876097b
@ -148,6 +148,21 @@ export default function CarnetPage() {
|
|||||||
setLayoutMode("item-selection");
|
setLayoutMode("item-selection");
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const handleNewNote = () => {
|
||||||
|
setSelectedNote({
|
||||||
|
id: '',
|
||||||
|
title: '',
|
||||||
|
content: '',
|
||||||
|
lastModified: new Date().toISOString(),
|
||||||
|
type: 'file',
|
||||||
|
mime: 'text/markdown',
|
||||||
|
etag: ''
|
||||||
|
});
|
||||||
|
if (isMobile) {
|
||||||
|
setShowNotes(false);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
if (isLoading) {
|
if (isLoading) {
|
||||||
return (
|
return (
|
||||||
<div className="flex h-screen items-center justify-center">
|
<div className="flex h-screen items-center justify-center">
|
||||||
@ -192,6 +207,7 @@ export default function CarnetPage() {
|
|||||||
<NotesView
|
<NotesView
|
||||||
onNoteSelect={handleNoteSelect}
|
onNoteSelect={handleNoteSelect}
|
||||||
currentFolder={selectedFolder}
|
currentFolder={selectedFolder}
|
||||||
|
onNewNote={handleNewNote}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user