Skip to content

Commit e9020c5

Browse files
docs: adjust v11 release guide (#2197)
### 🎯 Goal Add missing part about `useImageFlagEmojisOnWindows`.
1 parent ec1d79b commit e9020c5

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
name: Publish documentation from "${{ github.ref_name }}" branch to ${{ inputs.docs_env }}
5454
runs-on: ubuntu-latest
5555
# skip during dry runs, release to production only from master, release to staging from anywhere
56-
if: ${{ !inputs.dry_run && ((inputs.docs_env == 'production' && github.ref_name == 'master') || (github.ref_name != 'master' && inputs.docs_env == 'staging')) }}
56+
if: ${{ !inputs.dry_run && ((github.ref_name == 'master' && contains('production,staging', inputs.docs_env)) || (github.ref_name != 'master' && inputs.docs_env == 'staging')) }}
5757
outputs:
5858
target-version: $${{ steps.target-version.outputs }}
5959
steps:

docusaurus/docs/React/release-guides/upgrade-to-v11.mdx

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -525,3 +525,20 @@ const customRenderText = (text, mentionedUsers) =>
525525

526526
const CustomMessageList = () => <MessageList renderText={customRenderText} />;
527527
```
528+
529+
## Flag `useImageFlagEmojisOnWindows`
530+
531+
Since this release you'll need to explicitly import extra stylesheet from `stream-chat-react/css/v2/emoji-replacement.css` as it has been removed from our main stylesheet to reduce final bundle size for integrators who do not wish to use this feature.
532+
533+
```tsx
534+
import { Chat } from 'stream-chat-react';
535+
536+
import 'stream-chat-react/css/v2/index.css';
537+
import 'stream-chat-react/css/v2/emoji-replacement.css';
538+
539+
export const WrappedChat = ({ children, client }) => (
540+
<Chat useImageFlagEmojisOnWindows client={client}>
541+
{children}
542+
</Chat>
543+
);
544+
```

0 commit comments

Comments
 (0)