forked from git.gladyson/openmonetis
- Implementa a página de anotações arquivadas, que busca as notas arquivadas do usuário e as exibe utilizando o componente NotesPage. - Cria o componente NotificationBell para gerenciar e exibir notificações de pagamentos, incluindo a formatação de datas e valores monetários. O componente também apresenta um sistema de tooltip e dropdown para interação do usuário.
25 lines
394 B
TypeScript
25 lines
394 B
TypeScript
export type NoteType = "nota" | "tarefa";
|
|
|
|
export interface Task {
|
|
id: string;
|
|
text: string;
|
|
completed: boolean;
|
|
}
|
|
|
|
export interface Note {
|
|
id: string;
|
|
title: string;
|
|
description: string;
|
|
type: NoteType;
|
|
tasks?: Task[];
|
|
arquivada: boolean;
|
|
createdAt: string;
|
|
}
|
|
|
|
export interface NoteFormValues {
|
|
title: string;
|
|
description: string;
|
|
type: NoteType;
|
|
tasks?: Task[];
|
|
}
|