diff --git a/src/components/item/settings/ThumbnailSetting.tsx b/src/components/item/settings/ThumbnailSetting.tsx index 3cc888c4b..30bc3f96a 100644 --- a/src/components/item/settings/ThumbnailSetting.tsx +++ b/src/components/item/settings/ThumbnailSetting.tsx @@ -1,6 +1,6 @@ import { FormEventHandler, useEffect, useRef, useState } from 'react'; -import Grid from '@mui/material/Grid'; +import { Stack } from '@mui/material'; import Typography from '@mui/material/Typography'; import { ItemType } from '@graasp/sdk'; @@ -115,49 +115,44 @@ const ThumbnailSetting = ({ item }: Props): JSX.Element | null => { }; const alt = translateBuilder(BUILDER.THUMBNAIL_SETTING_MY_THUMBNAIL_ALT); - const defaultImageComponent = {alt}; + const imgUrl = thumbnailUrl ?? defaultImage; return ( <> {uppy && ( )} - - - - {translateBuilder(BUILDER.SETTINGS_THUMBNAIL_TITLE)} - - - {translateBuilder(BUILDER.SETTINGS_THUMBNAIL_SETTINGS_INFORMATIONS)} - - - - - - - + + + {translateBuilder(BUILDER.SETTINGS_THUMBNAIL_TITLE)} + + + {translateBuilder(BUILDER.SETTINGS_THUMBNAIL_SETTINGS_INFORMATIONS)} + + + + {fileSource && (