test: add test case for upload image (#1250)

This commit is contained in:
Himself65
2023-03-01 23:51:15 -06:00
committed by GitHub
parent e5a6fd8f6c
commit f34a64a82a
7 changed files with 60 additions and 10 deletions

View File

@@ -13,6 +13,7 @@ export const Upload: React.FC<UploadProps> = ({
fileChange,
accept,
children,
...props
}) => {
const { t } = useTranslation();
const input_ref = useRef<HTMLInputElement>(null);
@@ -41,6 +42,7 @@ export const Upload: React.FC<UploadProps> = ({
style={{ display: 'none' }}
onChange={_handleInputChange}
accept={accept}
{...props}
/>
</UploadStyle>
);