Improve messages error handling (#181)

* Improve messages error handling

* Add types to getPlayerFromIdentifier function

* Add phone validation regex to message group form

* Add correct alert types to enum

* Improve locale

* Improve error message for unregistered numbers
This commit is contained in:
J Francisco Rader authored and GitHub committed 2021-03-29 18:55:27 -04:00
1 parent f27e486ff5
commit 107dc43624
9 files changed
+58 -23

No files matched your search

+1 -1
View File
@@ -6,7 +6,7 @@ export interface IAlert {
type: AlertType;
}
export type AlertType = 'success' | 'error' | 'info';
export type AlertType = 'success' | 'error' | 'info' | 'warning';
interface ISnackBar {
addAlert: ({ message, type }: IAlert) => void;