chore: update show notice duration
This commit is contained in:
parent
840ef80d94
commit
93cbca6a9f
@ -18,7 +18,7 @@ export const snackbarConstants = {
|
||||
},
|
||||
NOTICE: {
|
||||
variant: 'info',
|
||||
autoHideDuration: 20000
|
||||
autoHideDuration: 7000
|
||||
}
|
||||
},
|
||||
Mobile: {
|
||||
|
@ -51,9 +51,9 @@ export function showError(error) {
|
||||
|
||||
export function showNotice(message, isHTML = false) {
|
||||
if (isHTML) {
|
||||
enqueueSnackbar(<SnackbarHTMLContent htmlContent={message} />, getSnackbarOptions('INFO'));
|
||||
enqueueSnackbar(<SnackbarHTMLContent htmlContent={message} />, getSnackbarOptions('NOTICE'));
|
||||
} else {
|
||||
enqueueSnackbar(message, getSnackbarOptions('INFO'));
|
||||
enqueueSnackbar(message, getSnackbarOptions('NOTICE'));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user