-
Notifications
You must be signed in to change notification settings - Fork 274
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(emoji-mart): new reactions (#1947)
BREAKING CHANGE: `reactionOptions` signature has changed, see [release guide](https://github.com/GetStream/stream-chat-react/blob/v11.0.0/docusaurus/docs/React/release-guides/upgrade-to-v11.mdx) for more information Refactor and fix the way reactions work, introduce new way of customizing with better DX. Fixes: #1935 Closes: #1637 Closes: #1437 Closes: #2159 Closes: GetStream/stream-chat-react-native#2023 - ditch EmojiMart implementation, use native/sprite-sheet solution
- Loading branch information
1 parent
28f0676
commit 58ea978
Showing
24 changed files
with
774 additions
and
402 deletions.
There are no files selected for viewing
13 changes: 10 additions & 3 deletions
13
docusaurus/docs/React/_docusaurus-components/GHComponentLink.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,14 @@ | ||
import React from 'react'; | ||
|
||
const GHComponentLink = ({text, path}) => { | ||
return <a target='_blank' href={`https://github.com/GetStream/stream-chat-react/blob/master/src/components${path}`}>{text}</a> | ||
} | ||
const GHComponentLink = ({ text, as: As = React.Fragment, path, branch = 'master' }) => { | ||
return ( | ||
<a | ||
target='_blank' | ||
href={`https://github.com/GetStream/stream-chat-react/blob/${branch}/src/components${path}`} | ||
> | ||
<As>{text}</As> | ||
</a> | ||
); | ||
}; | ||
|
||
export default GHComponentLink; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.