mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
fixes
This commit is contained in:
parent
85b0643693
commit
5b36da54d2
@ -15,6 +15,7 @@ const AssetTeaser: React.FC<AssetTeaserProps> = ({
|
|||||||
ddo,
|
ddo,
|
||||||
metadata
|
metadata
|
||||||
}: AssetTeaserProps) => {
|
}: AssetTeaserProps) => {
|
||||||
|
// TODO: hacky safeguard should be replaced with search query to account for pagination
|
||||||
if (!metadata.additionalInformation) return null
|
if (!metadata.additionalInformation) return null
|
||||||
|
|
||||||
const { name } = metadata.main
|
const { name } = metadata.main
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Data Token Icon Style */
|
/* Data Token Icon Style */
|
||||||
.icon[class*='DT'] path {
|
.icon:not([class*='OCEAN']) path {
|
||||||
fill: var(--brand-violet);
|
fill: var(--brand-violet);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
font-size: var(--font-size-small);
|
font-size: var(--font-size-small);
|
||||||
margin-top: calc(var(--spacer) / 2);
|
margin-top: calc(var(--spacer) / 4);
|
||||||
}
|
}
|
||||||
|
|
||||||
.dataTokenLinks a {
|
.dataTokenLinks a {
|
||||||
|
@ -45,11 +45,15 @@ const AssetList: React.FC<AssetListProps> = ({ queryResult }) => {
|
|||||||
<div className={styles.assetList}>
|
<div className={styles.assetList}>
|
||||||
{queryResult && queryResult.totalResults > 0 ? (
|
{queryResult && queryResult.totalResults > 0 ? (
|
||||||
queryResult.results.map((ddo: DDO) => {
|
queryResult.results.map((ddo: DDO) => {
|
||||||
const { attributes }: MetadataMarket = ddo.findServiceByType(
|
const { attributes } = ddo.findServiceByType('metadata')
|
||||||
'metadata'
|
|
||||||
)
|
|
||||||
|
|
||||||
return <AssetTeaser ddo={ddo} metadata={attributes} key={ddo.id} />
|
return (
|
||||||
|
<AssetTeaser
|
||||||
|
ddo={ddo}
|
||||||
|
metadata={(attributes as unknown) as MetadataMarket}
|
||||||
|
key={ddo.id}
|
||||||
|
/>
|
||||||
|
)
|
||||||
})
|
})
|
||||||
) : (
|
) : (
|
||||||
<div className={styles.empty}>
|
<div className={styles.empty}>
|
||||||
|
@ -14,7 +14,9 @@ async function getLatestAssets(metadataStoreUri: string) {
|
|||||||
|
|
||||||
const result = await metadataStore.queryMetadata({
|
const result = await metadataStore.queryMetadata({
|
||||||
page: 1,
|
page: 1,
|
||||||
offset: 10,
|
// TODO: hacky workaround because some assets pushed by external devs are faulty
|
||||||
|
// See molecules/AssetTeaser.tsx
|
||||||
|
offset: 100,
|
||||||
query: {},
|
query: {},
|
||||||
sort: { created: -1 }
|
sort: { created: -1 }
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user