Feat: Create contact from contacts page (#1806)

* Add contact create modal to contacts page

* Test cases

* Review fixes
This commit is contained in:
Nithin David Thomas 2021-02-19 20:22:58 +05:30 committed by GitHub
parent 6ba25bae3d
commit c17380d48a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 187 additions and 11 deletions

View file

@ -1,3 +1,4 @@
/* eslint-disable max-classes-per-file */
export class DuplicateContactException extends Error {
constructor(data) {
super('DUPLICATE_CONTACT');
@ -5,3 +6,10 @@ export class DuplicateContactException extends Error {
this.name = 'DuplicateContactException';
}
}
export class ExceptionWithMessage extends Error {
constructor(data) {
super('ERROR_WITH_MESSAGE');
this.data = data;
this.name = 'ExceptionWithMessage';
}
}