1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00

remove custom table component

This commit is contained in:
Matthias Kretschmann 2020-09-29 21:25:05 +02:00
parent 3447fc3479
commit 2276367566
Signed by: m
GPG Key ID: 606EEEF3C479A91F
3 changed files with 0 additions and 47 deletions

View File

@ -1,6 +0,0 @@
import React from 'react'
import Time from '../Time'
export default function DateCell({ date }: { date: any }) {
return date && <Time date={date} />
}

View File

@ -1,6 +0,0 @@
import React from 'react'
import { Link } from 'gatsby'
export default function DdoLinkCell({ id, name }: { id: any; name: any }) {
return <Link to={`/asset/${id}`}>{name}</Link>
}

View File

@ -1,35 +0,0 @@
import React, { ReactElement } from 'react'
import DataTable from 'react-data-table-component'
export declare type AssetTablePagination = {
count: number
rowsPerPage: number
page: number
handleChangePage: (
event: React.MouseEvent<HTMLButtonElement> | null,
page: number
) => void
handleChangeRowsPerPage: React.ChangeEventHandler<
HTMLTextAreaElement | HTMLInputElement
>
}
export default function Table({
columns,
data,
pagination
}: {
columns: any
data: any
pagination?: AssetTablePagination
}): ReactElement {
return (
<div>
{data?.length ? (
<DataTable noHeader columns={columns} data={data} />
) : (
<div>No Data Sets Yet.</div>
)}
</div>
)
}