Update AssetsPreview for .html files

This commit is contained in:
Serkan Reis 2023-01-24 11:16:29 +03:00
parent 7ec8f94fb6
commit db44f85fdc
3 changed files with 13 additions and 1 deletions

View File

@ -96,6 +96,18 @@ export const AssetsPreview = ({ assetFilesArray, updateMetadataFileIndex }: Asse
/>
</div>
)}
{getAssetType(assetSource.name) === 'html' && (
<div className="flex absolute flex-col items-center mt-4 ml-2">
<img
key={`html-${index}`}
alt="html_icon"
className={clsx('mb-2 ml-1 w-10 h-10 thumbnail')}
src="/html.png"
/>
<span className="flex self-center">{assetSource.name.toLowerCase()}</span>
</div>
)}
</label>
</button>
))

View File

@ -488,7 +488,7 @@ export const UploadDetails = ({ onChange, minterType, baseMinterAcquisitionMetho
</div>
</div>
)}
<Conditional test={assetFilesArray.length > 1}>
<Conditional test={assetFilesArray.length >= 1}>
<MetadataModal
assetFile={assetFilesArray[metadataFileArrayIndex]}
metadataFile={metadataFilesArray[metadataFileArrayIndex]}

BIN
public/html.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB