Skip to content

Commit

Permalink
docs: update custom image fallback example
Browse files Browse the repository at this point in the history
Co-authored-by: Anton Arnautov <[email protected]>
  • Loading branch information
MartinCupela and arnautov-anton authored Nov 28, 2023
1 parent 5ee1836 commit 942ee2e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ The component props are internally forwarded to the underlying `<img/>`. The com
import { useRef } from 'react';
import { BaseImage } from 'stream-chat-react';

const ImageFallback = () => <div>Custom fallback</div>;
const CustomImageFallback = () => <img src="unsupported-image-format-fallback.jpg" alt="Unsupported Image Format Fallback" />;

const MyUI = () => {
const imgRef = useRef<HTMLImageElement | null>(null);
Expand Down

0 comments on commit 942ee2e

Please sign in to comment.