Skip to content

Commit 1e396f5

Browse files
committed
docs: import warning for mdx files around polls
1 parent 3ef1377 commit 1e396f5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docusaurus/docs/reactnative/state-and-offline-support/state-overview.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -393,13 +393,13 @@ Please keep in mind that `message.poll` is not going to be reactive, but will ra
393393

394394
The React Native SDK provides 2 utility hooks to help with consuming the `poll` state. They can be found listed below:
395395

396-
- [`usePollStateStore`](./hooks/poll/use-poll-state-store.mdx)
397-
- [`usePollState`](./hooks/poll/use-poll-state.mdx)
396+
- [`usePollStateStore`](../hooks/poll/use-poll-state-store.mdx)
397+
- [`usePollState`](../hooks/poll/use-poll-state.mdx)
398398

399399
Similarly to the `threads` feature, one can also directly use `useStateStore` and access `StreamChat.polls.fromState(<poll-id>).state` through custom `selector`s.
400400

401401
:::note
402-
Both `usePollStateStore` and `usePollState` can only be used in children of a [`PollContext`](./contexts/poll-context.mdx). This impediment does not exist however on `useStateStore`.
402+
Both `usePollStateStore` and `usePollState` can only be used in children of a [`PollContext`](../contexts/poll-context.mdx). This impediment does not exist however on `useStateStore`.
403403
:::
404404

405405
Due to this, all `poll` related components within the SDK are self-wrapped within a `PollContext` and require `message` and `poll` as mandatory props.

0 commit comments

Comments
 (0)