-
Notifications
You must be signed in to change notification settings - Fork 280
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add BaseImage component with image fallback display #2183
Conversation
Codecov ReportAttention:
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #2183 +/- ##
==========================================
+ Coverage 83.64% 83.76% +0.12%
==========================================
Files 308 314 +6
Lines 7129 7196 +67
Branches 2018 2034 +16
==========================================
+ Hits 5963 6028 +65
+ Misses 832 831 -1
- Partials 334 337 +3 ☔ View full report in Codecov by Sentry. |
Size Change: -45.5 kB (-3%) Total Size: 1.67 MB
ℹ️ View Unchanged
|
2cc3b70
to
a510e8f
Compare
docusaurus/docs/React/components/utility-components/base-image.mdx
Outdated
Show resolved
Hide resolved
docusaurus/docs/React/components/utility-components/base-image.mdx
Outdated
Show resolved
Hide resolved
Co-authored-by: Anton Arnautov <[email protected]>
Co-authored-by: Anton Arnautov <[email protected]>
Co-authored-by: Anton Arnautov <[email protected]>
...generateChannelOptions, | ||
}); | ||
const client = await getTestClientWithUser(user); | ||
// eslint-disable-next-line react-hooks/rules-of-hooks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see linter got confused a little. 😄
## [11.1.0](v11.0.0...v11.1.0) (2023-12-01) ### Bug Fixes * revert "feat: expose channels state on chat level ([#2161](#2161))" ([#2184](#2184)) ([32e4867](32e4867)) ### Features * add BaseImage component with image fallback display ([#2183](#2183)) ([ec1d79b](ec1d79b)) * add channel list context ([#2187](#2187)) ([fd5ea67](fd5ea67)) * render BaseImage image fallback within the same img element ([#2200](#2200)) ([2fcd564](2fcd564)) ### Chores * **deps:** bump @stream-io/stream-chat-css from 4.0.0 to 4.1.0 ([e600e3c](e600e3c)) * **deps:** bump stream-chat from 8.14.3 to 8.14.4 ([#2199](#2199)) ([a4dd57f](a4dd57f)) * **deps:** move `@stream-io/stream-chat-css` to `devDeps` ([#2191](#2191)) ([61af19c](61af19c))
🎉 This PR is included in version 11.1.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
🎯 Goal
Provide a base image component that renders an image or its fallback in case the image could not be loaded.
depends on GetStream/stream-chat-css#251
fixes #2182
🎨 UI Changes
See file changes.
Todo