refactor(notes): split NoteEditor into NoteForm and NoteReadView
This commit is contained in:
1 parent
7325485ee3
commit
e13652a753
5 files changed
+195
-110
No files matched your search
@@ -17,6 +17,12 @@ export interface CreateNoteEditorProps {
|
||||
|
||||
export type NoteEditorProps = EditNoteEditorProps | CreateNoteEditorProps
|
||||
|
||||
export interface NoteReadViewProps {
|
||||
note: Note
|
||||
onEdit: () => void
|
||||
onDelete: (id: number) => void
|
||||
}
|
||||
|
||||
export interface NoteFormProps {
|
||||
title: string
|
||||
content: string
|
||||
|
||||
Reference in new issue
Block a user