feat(anotações): permite anexos em notas

This commit is contained in:
Felipe Coutinho
2026-06-21 11:54:05 -03:00
parent 129295d2e2
commit d363662548
17 changed files with 3942 additions and 90 deletions

View File

@@ -22,9 +22,14 @@ import type { Note } from "./types";
interface NotesPageProps {
notes: Note[];
archivedNotes: Note[];
attachmentMaxSizeMb?: number;
}
export function NotesPage({ notes, archivedNotes }: NotesPageProps) {
export function NotesPage({
notes,
archivedNotes,
attachmentMaxSizeMb,
}: NotesPageProps) {
const [activeTab, setActiveTab] = useState("ativas");
const [createOpen, setCreateOpen] = useState(false);
const [editOpen, setEditOpen] = useState(false);
@@ -192,6 +197,7 @@ export function NotesPage({ notes, archivedNotes }: NotesPageProps) {
mode="create"
open={createOpen}
onOpenChange={handleCreateOpenChange}
attachmentMaxSizeMb={attachmentMaxSizeMb}
trigger={
<Button className="w-full sm:w-auto">
<RiAddFill className="size-4" />
@@ -222,6 +228,7 @@ export function NotesPage({ notes, archivedNotes }: NotesPageProps) {
note={noteToEdit ?? undefined}
open={editOpen}
onOpenChange={handleEditOpenChange}
attachmentMaxSizeMb={attachmentMaxSizeMb}
/>
<NoteDetailsDialog