improvement: Tweak error message on image import (#2619)

* improvement: tweak error message on image import

* tweak copy
This commit is contained in:
David Luzar 2020-12-20 16:11:44 +01:00 committed by GitHub
parent 4a89aba682
commit b997e69ebc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 3 deletions

View file

@ -28,7 +28,14 @@ export const ErrorDialog = ({
onCloseRequest={handleClose}
title={t("errorDialog.title")}
>
<div>{message}</div>
<div>
{message.split("\n").map((line) => (
<>
{line}
<br />
</>
))}
</div>
</Dialog>
)}
</>