diff --git a/src/components/Message/InlineMedia.tsx b/src/components/Message/InlineMedia.tsx index 54851b2..b41b270 100644 --- a/src/components/Message/InlineMedia.tsx +++ b/src/components/Message/InlineMedia.tsx @@ -1,5 +1,6 @@ import { useContext, useEffect, useRef, useState } from 'react' import { TorrentFile } from 'webtorrent' +import Box from '@mui/material/Box' import CircularProgress from '@mui/material/CircularProgress' import Typography from '@mui/material/Typography' @@ -37,13 +38,13 @@ export const InlineFile = ({ file }: InlineFileProps) => { }, [file, containerRef, shellContext.roomId]) return ( -
+ {didRenderingMediaFail && ( Media failed to render )} -
+ ) }