chore: update sharing image preview

This commit is contained in:
boojack
2022-06-25 09:58:00 +08:00
parent cad4db128b
commit 8cb3994022
7 changed files with 27 additions and 180 deletions

View File

@ -55,7 +55,7 @@ const ShareMemoImageDialog: React.FC<Props> = (props: Props) => {
const handleImageOnLoad = (ev: React.SyntheticEvent<HTMLImageElement>) => {
if (ev.type === "error") {
toastHelper.error("有个图片加载失败了😟");
toastHelper.error("😟 Image load failed");
(ev.target as HTMLImageElement).remove();
}
setImgAmount(imgAmount - 1);