Pridani notifikace pri nezdarenem loginu
This commit is contained in:
@@ -19,10 +19,10 @@ export const warningObject = (message) => ({
|
||||
});
|
||||
|
||||
|
||||
export const errorObject = (message) => ({
|
||||
export const errorObject = (message, timeout = null) => ({
|
||||
message,
|
||||
position: "top",
|
||||
color: "negative",
|
||||
timeout: 5 * 60 * 1000,
|
||||
timeout: timeout || 5 * 60 * 1000,
|
||||
actions: [{ icon: 'close', color: 'white', round: true, handler: () => { }}]
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user