Skip to content

Commit 7247ca6

Browse files
committed
fix: lint errors
1 parent 802cf6b commit 7247ca6

25 files changed

+194
-224
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
A method that will be used as a callback whenever the default `CreatePoll` component back button is pressed in the header. Unless used, it will have no effect if the default `CreatePollContent` is overriden.
22

3-
| Type |
4-
| ------------------------------------ |
3+
| Type |
4+
| ------------ |
55
| `() => void` |

docusaurus/docs/reactnative/common-content/contexts/create-poll-context/create-and-send-poll.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ A method that will be used as a callback whenever send button is clicked on the
22

33
It expects to receive an argument that conforms to the `CreatePollData` type that can be found [here](https://github.com/GetStream/stream-chat-js/blob/master/src/types.ts).
44

5-
| Type |
6-
| ------------------------------------ |
5+
| Type |
6+
| --------------------------------------------- |
77
| `(pollData: CreatePollData) => Promise<void>` |
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
A custom UI component used to render the entire poll creation form. It has access to the [`CreatePollContext`](../../../contexts/create-poll-context.mdx) values by default through the `useCreatePollContext` hook.
22

3-
| Type | Default |
4-
| ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- |
5-
| ComponentType | [`CreatePollContent`](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Poll/CreatePollContent.tsx) |
3+
| Type | Default |
4+
| ------------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
5+
| ComponentType | [`CreatePollContent`](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Poll/CreatePollContent.tsx) |
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
A property used to define the height of the poll options in the `CreatePollContent` draggable list. The items can have a constant and equal height only and this should only be used if custom theming implies that the static height of the items changes. Has no effect if a custom UI for `CreatePollContent` is provided.
22

3-
| Type |
4-
| ------------------------------------ |
3+
| Type |
4+
| ------ |
55
| number |
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
A boolean signifying whether the poll creation dialog is shown or not. Will always be `false` if [`PollCreateContent`](../../../core-components/channel.mdx#createpollcontent) is custom.
22

3-
| Type |
4-
| -------- |
3+
| Type |
4+
| ------- |
55
| boolean |
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
A boolean value that is responsible for controlling whether the poll creation button is visible or not.
22

3-
| Type |
4-
| -------- |
3+
| Type |
4+
| ------- |
55
| boolean |

docusaurus/docs/reactnative/common-content/ui-components/channel/props/open-poll-creation-dialog.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ If overridden, a `payload` is passed containing the `sendMessage` callback from
66
| -------- |
77
| function |
88

9-
| Parameter | Description |
10-
| --------- | ----------------------------- |
9+
| Parameter | Description |
10+
| --------- | ----------------- |
1111
| payload | `{ sendMessage }` |

docusaurus/docs/reactnative/common-content/ui-components/poll/poll-content.mdx

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ A `Component` prop used to render the content of the `Poll` component in `Messag
22

33
The component has full access to the entire `Poll` reactive state through the `usePollState` hook.
44

5-
| Type | Default |
6-
| ------------- | ---------------------------------------------- |
5+
| Type | Default |
6+
| ------------- | --------------------------------------------------------------------------------------------------------------------- |
77
| ComponentType | [`PollContent`](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Poll/Poll.tsx) |
88

99
#### Props
@@ -12,15 +12,14 @@ The component has full access to the entire `Poll` reactive state through the `u
1212

1313
A `Component` prop used to render the header of the `PollContent` component.
1414

15-
| Type | Default |
16-
| ------------- | ---------------------------------------------- |
15+
| Type | Default |
16+
| ------------- | -------------------------------------------------------------------------------------------------------------------- |
1717
| ComponentType | [`PollHeader`](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Poll/Poll.tsx) |
1818

1919
##### `PollButtons`
2020

2121
A `Component` prop used to render the buttons of the `PollContent` component.
2222

23-
| Type | Default |
24-
| ------------- | ---------------------------------------------- |
23+
| Type | Default |
24+
| ------------- | --------------------------------------------------------------------------------------------------------------------- |
2525
| ComponentType | [`PollButtons`](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/Poll/Poll.tsx) |
26-

docusaurus/docs/reactnative/contexts/create-poll-context.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ title: CreatePollContext
66
import ClosePollCreationDialog from '../common-content/contexts/create-poll-context/close-poll-creation-dialog.mdx';
77
import CreateAndSendPoll from '../common-content/contexts/create-poll-context/create-and-send-poll.mdx';
88
import CreatePollOptionHeight from '../common-content/contexts/create-poll-context/create-poll-option-height.mdx';
9-
import SendMessage from '../common-content/contexts/message-input-context/send_message.mdx'
9+
import SendMessage from '../common-content/contexts/message-input-context/send_message.mdx';
1010

1111
The `CreatePollContext` is provided by the [`CreatePoll`](../../ui-components/create-poll) component. If you are not familiar with React Context API, please read about it on [React docs](https://reactjs.org/docs/context.html).
1212

docusaurus/docs/reactnative/contexts/message-input-context.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ import UploadImage from '../common-content/contexts/message-input-context/upload
9494
import UpdateMessage from '../common-content/contexts/message-input-context/update_message.mdx';
9595
import UploadNewFile from '../common-content/contexts/message-input-context/upload_new_file.mdx';
9696
import UploadNewImage from '../common-content/contexts/message-input-context/upload_new_image.mdx';
97-
import ClosePollCreationDialog from '../common-content/contexts/message-input-context/close-poll-creation-dialog.mdx'
98-
import ShowPollCreationDialog from '../common-content/contexts/message-input-context/show-poll-creation-dialog.mdx'
97+
import ClosePollCreationDialog from '../common-content/contexts/message-input-context/close-poll-creation-dialog.mdx';
98+
import ShowPollCreationDialog from '../common-content/contexts/message-input-context/show-poll-creation-dialog.mdx';
9999

100100
`MessageInputContext` is provided by [`Channel`](../../core-components/channel) component. If you are not familiar with React Context API, please read about it on [React docs](https://reactjs.org/docs/context.html).
101101

0 commit comments

Comments
 (0)