From 7caa03e2ef98ea44567ad199855b06822cf545ed Mon Sep 17 00:00:00 2001 From: afc163 Date: Tue, 4 Jan 2022 21:44:08 +0800 Subject: [PATCH] docs: fix update demo --- components/upload/demo/upload-png-only.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/upload/demo/upload-png-only.md b/components/upload/demo/upload-png-only.md index e86268bb88..4a2687b0b9 100644 --- a/components/upload/demo/upload-png-only.md +++ b/components/upload/demo/upload-png-only.md @@ -21,7 +21,7 @@ import { UploadOutlined } from '@ant-design/icons'; const Uploader = () => { const props = { beforeUpload: file => { - const isPNG = file.type === 'image/png'; + const isPNG = file.type === 'image/png'; if (!isPNG) { message.error(`${file.name} is not a png file`); }