Skip to content

Commit

Permalink
fix: Add missing properties to ShowUploadListInterface (#26405)
Browse files Browse the repository at this point in the history
  • Loading branch information
bencallaway committed Aug 25, 2020
1 parent 73f4b9b commit 9aec4cb
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
17 changes: 17 additions & 0 deletions components/upload/__tests__/type.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,21 @@ describe('Upload.typescript', () => {
);
expect(upload).toBeTruthy();
});

it('showUploadList', () => {
const upload = (
<Upload
showUploadList={{
showPreviewIcon: true,
showRemoveIcon: true,
showDownloadIcon: true,
removeIcon: 'Remove',
downloadIcon: 'Download',
}}
>
<span>click to upload</span>
</Upload>
);
expect(upload).toBeTruthy();
});
});
2 changes: 2 additions & 0 deletions components/upload/interface.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ export interface ShowUploadListInterface {
showRemoveIcon?: boolean;
showPreviewIcon?: boolean;
showDownloadIcon?: boolean;
removeIcon?: React.ReactNode;
downloadIcon?: React.ReactNode;
}

export interface UploadLocale {
Expand Down

0 comments on commit 9aec4cb

Please sign in to comment.