Actionable toasts

This commit is contained in:
Josh Perez
2021-10-06 17:00:51 -04:00
committed by GitHub
parent d542f450a1
commit b9134f8332
11 changed files with 148 additions and 59 deletions

View File

@@ -23,8 +23,11 @@ export const ToastDecryptionError = ({
<Toast
autoDismissDisabled
className="decryption-error"
onClick={onShowDebugLog}
onClose={onClose}
toastAction={{
label: i18n('decryptionErrorToastAction'),
onClick: onShowDebugLog,
}}
>
{i18n('decryptionErrorToast')}
</Toast>