mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
preview tweak
This commit is contained in:
parent
6f79e16e4d
commit
209117ea1e
@ -19,25 +19,29 @@ 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 &&
|
||||||
<File
|
typeof values.files !== 'string' &&
|
||||||
file={values.files[0] as FileMetadata}
|
values.files.length > 0 && (
|
||||||
className={styles.file}
|
<File
|
||||||
small
|
file={values.files[0] as FileMetadata}
|
||||||
/>
|
className={styles.file}
|
||||||
)}
|
small
|
||||||
{values.links && values.links.length && (
|
/>
|
||||||
<Button
|
)}
|
||||||
href={(values.links[0] as FileMetadata).url}
|
{values.links &&
|
||||||
target="_blank"
|
typeof values.links !== 'string' &&
|
||||||
rel="noreferrer"
|
values.links.length && (
|
||||||
download
|
<Button
|
||||||
style="text"
|
href={(values.links[0] as FileMetadata).url}
|
||||||
size="small"
|
target="_blank"
|
||||||
>
|
rel="noreferrer"
|
||||||
Download Sample
|
download
|
||||||
</Button>
|
style="text"
|
||||||
)}
|
size="small"
|
||||||
|
>
|
||||||
|
Download Sample
|
||||||
|
</Button>
|
||||||
|
)}
|
||||||
{values.tags && <Tags items={values.tags.split(',')} />}
|
{values.tags && <Tags items={values.tags.split(',')} />}
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user