mirror of
https://github.com/oceanprotocol/market.git
synced 2024-06-28 16:47:52 +02:00
1f72fd3951
* isolated pagination using query * made pagination hrefBuilder prop optional * mad query prop optional, fixed TransactionHistoryPool import error * removed pagination and url logic outsite AssetQueryList * renamed AssetQueryList to AssetList, changed props * used navigate from gatsby
22 lines
484 B
TypeScript
22 lines
484 B
TypeScript
import React from 'react'
|
|
import { DDO } from '@oceanprotocol/lib'
|
|
import AssetList from './AssetList'
|
|
import asset from '../../../tests/unit/__fixtures__/ddo'
|
|
|
|
const queryResult = {
|
|
results: [asset, asset, asset, asset, asset, asset].map(
|
|
(asset) => new DDO(asset)
|
|
),
|
|
page: 1,
|
|
totalPages: 100,
|
|
totalResults: 1000
|
|
}
|
|
|
|
export default {
|
|
title: 'Organisms/Asset List'
|
|
}
|
|
|
|
export const Default = () => (
|
|
<AssetList assets={queryResult.results} showPagination={false} />
|
|
)
|