Module: actions/alertActions

Redux alert actions

Source:

Methods

(static) clearAlert()

Clears alert.

Source:

(static) setAlert(message, severityopt, durationopt)

Sets alert that is shown inside a MUI snackbar component

Parameters:
Name Type Attributes Default Description
message string

text that alert displays (displayed in MUI snackbar)

severity string <optional>
info

alert severity (error, warning, info, success)

duration number <optional>
5

amount of time the alert is shown in seconds

Source: