Skip to content
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

[Feature Request]: Avatar - Handle fallback image #597

Open
vicky-comeau opened this issue Dec 12, 2023 · 0 comments
Open

[Feature Request]: Avatar - Handle fallback image #597

vicky-comeau opened this issue Dec 12, 2023 · 0 comments
Labels
enhancement New feature or request hopper It'll be done in hopper only

Comments

@vicky-comeau
Copy link
Contributor

Component that this feature request involves

Avatar

Is your feature request related to a problem? Please describe

No response

Describe the solution you'd like

In OV, the avatar allows for a fallback image.
They have this hook:
const [imageUrl, handleImageError] = useUserImageFallback(src, fallbackSrc);
and they call this on the image tag:
onError={handleImageError}
It would be good to have this in igloo so that we're able to replace all avatars with our component.

Describe alternatives you've considered

No response

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request hopper It'll be done in hopper only
Projects
None yet
Development

No branches or pull requests

1 participant