Skip to content

Commit

Permalink
Image: Display transformation error notice using snackbars (#44031)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamaduka authored Sep 9, 2022
1 parent 8ea73a8 commit a62506f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/block-library/src/image/transforms.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,10 @@ const transforms = {
__(
'If uploading to a gallery all files need to be image formats'
),
{ id: 'gallery-transform-invalid-file' }
{
id: 'gallery-transform-invalid-file',
type: 'snackbar',
}
);
}
return every(
Expand Down

0 comments on commit a62506f

Please sign in to comment.