Feat: Create contact from contacts page (#1806)
* Add contact create modal to contacts page * Test cases * Review fixes
This commit is contained in:
parent
6ba25bae3d
commit
c17380d48a
9 changed files with 187 additions and 11 deletions
|
@ -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';
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue