Skip to content

Commit

Permalink
chore(Upload): add id to async onFileClick example (#4388)
Browse files Browse the repository at this point in the history
  • Loading branch information
langz authored Dec 12, 2024
1 parent 069ae1a commit ee948ed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -367,13 +367,15 @@ export const UploadOnFileClick = () => (
setFiles([
{
file: createMockFile('1501870.jpg', 123, 'image/png'),
id: '1',
},
{
file: createMockFile(
'file-name-that-is-very-long-and-has-letters.png',
123,
'image/png',
),
id: '2',
},
])
}, [setFiles])
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ export const WithAsyncOnFileClick = () => {
myFiles: [
{
file: createMockFile('1501870.jpg', 100, 'image/png'),
id: '1',
},
],
}}
Expand Down

0 comments on commit ee948ed

Please sign in to comment.