File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
databox/client/src/components/Media/Asset Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -3,11 +3,10 @@ import {Asset} from '../../../types';
3
3
import AssetFileIcon from './AssetFileIcon' ;
4
4
import assetClasses from '../../AssetList/classes' ;
5
5
import FilePlayer from './FilePlayer' ;
6
- import { CircularProgress , SxProps } from '@mui/material' ;
6
+ import { Skeleton , SxProps } from '@mui/material' ;
7
7
import classNames from 'classnames' ;
8
8
import { alpha , Theme } from '@mui/material/styles' ;
9
9
import { videoPlayerSx } from './Players/VideoPlayer.tsx' ;
10
- import { useTranslation } from 'react-i18next' ;
11
10
12
11
type Props = {
13
12
asset : Asset ;
@@ -23,12 +22,18 @@ function AssetThumb({
23
22
} ,
24
23
...domAttrs
25
24
} : Props ) {
26
- const { t} = useTranslation ( ) ;
27
25
let thumb : ReactNode | undefined ;
28
26
29
27
if ( pendingSourceFile ) {
30
28
thumb = (
31
- < CircularProgress title = { t ( 'common.uploading' , `Uploading…` ) } />
29
+ < Skeleton
30
+ style = { {
31
+ borderRadius : 0 ,
32
+ transform : 'none' ,
33
+ width : '100%' ,
34
+ height : '100%' ,
35
+ } }
36
+ />
32
37
) ;
33
38
} else if ( thumbnail ?. file ) {
34
39
thumb = (
You can’t perform that action at this time.
0 commit comments