-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Finish generic error dialog message and send sentry error notification
- Loading branch information
1 parent
4a67724
commit 02aefab
Showing
4 changed files
with
22 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,17 @@ | ||
export const types = { | ||
SET_ERROR_DIALOG_MESSAGE: 'DIALOG_MESSAGE/SET_ERROR_DIALOG_MESSAGE', | ||
CLEAN_DIALOG_MESSAGE: 'DIALOG_MESSAGE/CLEAN_DIALOG_MESSAGE', | ||
SET_ERROR_DIALOG_MESSAGE: 'DIALOG_MESSAGE/SET_ERROR_DIALOG_MESSAGE', | ||
CLEAN_DIALOG_MESSAGE: 'DIALOG_MESSAGE/CLEAN_DIALOG_MESSAGE', | ||
}; | ||
|
||
export const setErrorDialogMessage = (message) => ({ | ||
const DEFAULT_ERROR_MESSAGE = "Oops! Algo deu errado, por favor tente novamente."; | ||
|
||
export const setErrorDialogMessage = (error, message = DEFAULT_ERROR_MESSAGE) => ({ | ||
type: types.SET_ERROR_DIALOG_MESSAGE, | ||
message, | ||
error, | ||
}); | ||
|
||
export const cleanDialogMessage = () => ({ | ||
type: types.CLEAN_DIALOG_MESSAGE, | ||
message: null, | ||
type: types.CLEAN_DIALOG_MESSAGE, | ||
message: null, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters