Show "info" toast severity by default

The default severity of MUI is "success"
This commit is contained in:
schroda
2025-01-04 16:28:16 +01:00
parent afeb0f9aca
commit 1b1ddeb334

View File

@@ -43,7 +43,7 @@ export const SnackbarWithDescription = memo(
) => {
const { t } = useTranslation();
const severity = variant === 'default' ? undefined : variant;
const severity = variant === 'default' ? 'info' : variant;
const finalAction = typeof action === 'function' ? action(id) : action;
const isDescriptionTooLong = (description?.length ?? 0) > MAX_DESCRIPTION_LENGTH;