diff --git a/src/components/molecules/AssetTeaser.stories.tsx b/src/components/molecules/AssetTeaser.stories.tsx index 63a4c445f..9f76a5508 100644 --- a/src/components/molecules/AssetTeaser.stories.tsx +++ b/src/components/molecules/AssetTeaser.stories.tsx @@ -2,9 +2,10 @@ import AssetTeaser from '../molecules/AssetTeaser' import * as React from 'react' import { DDO } from '@oceanprotocol/lib' import ddo from '../../../tests/unit/__fixtures__/ddo' +import { AssetListPrices } from '../../utils/subgraph' export default { title: 'Molecules/Asset Teaser' } -export const Default = () => +export const Default = () => diff --git a/src/components/molecules/AssetTeaser.tsx b/src/components/molecules/AssetTeaser.tsx index a976ae120..f05bbec8e 100644 --- a/src/components/molecules/AssetTeaser.tsx +++ b/src/components/molecules/AssetTeaser.tsx @@ -3,7 +3,7 @@ import { Link } from 'gatsby' import Dotdotdot from 'react-dotdotdot' import Price from '../atoms/Price' import styles from './AssetTeaser.module.css' -import { DDO } from '@oceanprotocol/lib' +import { DDO, BestPrice } from '@oceanprotocol/lib' import removeMarkdown from 'remove-markdown' import Publisher from '../atoms/Publisher' import Time from '../atoms/Time' @@ -11,9 +11,13 @@ import AssetType from '../atoms/AssetType' declare type AssetTeaserProps = { ddo: DDO + price: BestPrice } -const AssetTeaser: React.FC = ({ ddo }: AssetTeaserProps) => { +const AssetTeaser: React.FC = ({ + ddo, + price +}: AssetTeaserProps) => { const { attributes } = ddo.findServiceByType('metadata') const { name, type } = attributes.main const { dataTokenInfo } = ddo @@ -47,7 +51,7 @@ const AssetTeaser: React.FC = ({ ddo }: AssetTeaserProps) => {