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:
parent
3447fc3479
commit
2276367566
@ -1,6 +0,0 @@
|
||||
import React from 'react'
|
||||
import Time from '../Time'
|
||||
|
||||
export default function DateCell({ date }: { date: any }) {
|
||||
return date && <Time date={date} />
|
||||
}
|
@ -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>
|
||||
}
|
@ -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>
|
||||
)
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user