Skip to content

Commit

Permalink
[#1299] Video Fallback for the render library
Browse files Browse the repository at this point in the history
closes #1299
  • Loading branch information
bitboxer committed Mar 29, 2021
1 parent 9e31110 commit 3b66721
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ export const QuickReplies = ({quickReplies, fromContact, text, attachment}: Quic
{attachment && 'videoUrl' in attachment && <Video videoUrl={attachment.videoUrl} />}

<div className={styles.container}>
{quickReplies.map(({title, image_url}) => (
{quickReplies.map(({title, image_url: imageUrl}) => (
<button key={title} className={styles.replyButton}>
{image_url && (
{imageUrl && (
<img
className={styles.quickReplyImage}
alt={title}
src={image_url}
src={imageUrl}
onError={(event: React.SyntheticEvent<HTMLImageElement, Event>) => fallbackImage(event, 'mediaImage')}
/>
)}
Expand Down

0 comments on commit 3b66721

Please sign in to comment.