feat(notes/nui): useAlet hook

This commit is contained in:
Christopher committed 2021-02-08 18:52:04 +01:00
1 parent fc1f6b3ad3
commit 59973fcf9e
4 files changed
+31 -1

No files matched your search

+15
View File
@@ -1,3 +1,18 @@
export type AlertCategory =
| 'NOTES_ADD_SUCCESS'
| 'NOTES_ADD_FAILED'
| 'NOTES_UPDATE_SUCCESS'
| 'NOTES_UPDATE_FAILED'
| 'NOTES_DELETE_SUCCESS'
| 'NOTES_DELETE_FAILED'
export interface INotesAlert {
alert: AlertCategory;
setAlert: (type: AlertCategory) => void;
}
export interface Note {
id?: number;
title: string;