Skip to content

Commit de064d2

Browse files
authored
Merge pull request #1485 from GetStream/mads/docs-remove-image-file
docs: correct the parameter type for removeImage and removeFile
2 parents 828d453 + 335c6a8 commit de064d2

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Removes attached file in message, which is being composed in `MessageInput` component. By default, this function is attached to onPress handler for close button in [FileUploadPreview](../../../core-components/channel.mdx#fileuploadpreview).
2-
It takes index of file (to be removed) in [`fileUploads`](../../../contexts/message_input_context.mdx#fileuploads) array as parameter.
2+
It takes a string ID of the file to be removed in the [`fileUploads`](../../../contexts/message_input_context.mdx#fileuploads) array as parameter.
33

4-
| Type |
5-
| ----------------- |
6-
| `(index) => void` |
4+
| Type |
5+
| ---------------------- |
6+
| `(id: string) => void` |
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
Removes attached image in message, which is being composed in `MessageInput` component. By default, this function is attached to onPress handler for close button in [ImageUploadPreview](../../../core-components/channel.mdx#imageuploadpreview).
2-
It takes index of file (to be removed) in [imageUploads](../../../contexts/message_input_context.mdx#imageuploads) array as parameter.
1+
Removes an attached image in a message being composed in the `MessageInput` component. By default, this function is attached to onPress handler for close button in [ImageUploadPreview](../../../core-components/channel.mdx#imageuploadpreview).
2+
It takes a string ID of the image to be removed in the [imageUploads](../../../contexts/message_input_context.mdx#imageuploads) array as parameter.
33

4-
| Type |
5-
| ----------------- |
6-
| `(index) => void` |
4+
| Type |
5+
| ---------------------- |
6+
| `(id: string) => void` |

0 commit comments

Comments
 (0)