mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
refactor(contacts/contactalert): Cleaned up code
Reduced redundant code and added switch statement
This commit is contained in:
1 parent
96224eb239
commit
65de9d78a3
3 files changed
+44
-31
No files matched your search
@@ -1,4 +1,12 @@
|
||||
export type AlertCategory =
|
||||
| 'CONTACT_ADD_SUCCESS'
|
||||
| 'CONTACT_ADD_FAILED'
|
||||
| 'CONTACT_UPDATE_SUCCESS'
|
||||
| 'CONTACT_UPDATE_FAILED'
|
||||
| 'CONTACT_DELETE_SUCCESS'
|
||||
| 'CONTACT_DELETE_FAILED';
|
||||
|
||||
export interface IContactAlert {
|
||||
alert: string;
|
||||
alert: AlertCategory;
|
||||
setAlert: (type: string) => void;
|
||||
}
|
||||
Reference in new issue
Block a user