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