1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00

preview tweak

This commit is contained in:
Matthias Kretschmann 2020-09-02 13:31:43 +02:00
parent 6f79e16e4d
commit 209117ea1e
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -19,14 +19,18 @@ export default function Preview({
<header> <header>
{values.name && <h3 className={styles.title}>{values.name}</h3>} {values.name && <h3 className={styles.title}>{values.name}</h3>}
{values.description && <Markdown text={values.description} />} {values.description && <Markdown text={values.description} />}
{values.files && values.files.length && ( {values.files &&
typeof values.files !== 'string' &&
values.files.length > 0 && (
<File <File
file={values.files[0] as FileMetadata} file={values.files[0] as FileMetadata}
className={styles.file} className={styles.file}
small small
/> />
)} )}
{values.links && values.links.length && ( {values.links &&
typeof values.links !== 'string' &&
values.links.length && (
<Button <Button
href={(values.links[0] as FileMetadata).url} href={(values.links[0] as FileMetadata).url}
target="_blank" target="_blank"