File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -197,20 +197,30 @@ const Row = ({
197197 fEdit,
198198} : IRowProps ) => {
199199 const { classes} = useStyles ( ) ;
200+ const isCustomImage = image . startsWith ( 'image/' ) ;
200201 return (
201202 < TableRow >
202203 < TableCell padding = "normal" >
203204 < div style = { { display : 'flex' } } >
204- < Tooltip title = "Delete image" placement = "top" arrow >
205- < ButtonBase className = { classes . imageContainer } onClick = { fDeleteImage } >
206- < img
207- src = { config . get ( 'url' ) + image }
208- alt = "app logo"
209- width = "40"
210- height = "40"
211- />
212- </ ButtonBase >
213- </ Tooltip >
205+ { isCustomImage ? (
206+ < Tooltip title = "Delete image" placement = "top" arrow >
207+ < ButtonBase className = { classes . imageContainer } onClick = { fDeleteImage } >
208+ < img
209+ src = { config . get ( 'url' ) + image }
210+ alt = "app logo"
211+ width = "40"
212+ height = "40"
213+ />
214+ </ ButtonBase >
215+ </ Tooltip >
216+ ) : (
217+ < img
218+ src = { config . get ( 'url' ) + image }
219+ alt = "app logo"
220+ width = "40"
221+ height = "40"
222+ />
223+ ) }
214224 < IconButton onClick = { fUpload } style = { { height : 40 } } >
215225 < CloudUpload />
216226 </ IconButton >
You can’t perform that action at this time.
0 commit comments