MediaModal: fix types for Audio

environments/review-media-moda-e1w8yz/deployments/1144
Alex Gleason 2 years ago
parent def1c58835
commit 965fd8e479
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7

@ -209,11 +209,11 @@ const MediaModal: React.FC<IMediaModal> = (props) => {
<Audio <Audio
src={attachment.url} src={attachment.url}
alt={attachment.description} alt={attachment.description}
poster={attachment.preview_url !== attachment.url ? attachment.preview_url : (status.getIn(['account', 'avatar_static']))} poster={attachment.preview_url !== attachment.url ? attachment.preview_url : (status.getIn(['account', 'avatar_static'])) as string | undefined}
backgroundColor={attachment.meta.getIn(['colors', 'background'])} backgroundColor={attachment.meta.getIn(['colors', 'background']) as string | undefined}
foregroundColor={attachment.meta.getIn(['colors', 'foreground'])} foregroundColor={attachment.meta.getIn(['colors', 'foreground']) as string | undefined}
accentColor={attachment.meta.getIn(['colors', 'accent'])} accentColor={attachment.meta.getIn(['colors', 'accent']) as string | undefined}
duration={attachment.meta.getIn(['original', 'duration'], 0)} duration={attachment.meta.getIn(['original', 'duration'], 0) as number | undefined}
key={attachment.url} key={attachment.url}
/> />
); );

Loading…
Cancel
Save