diff --git a/src/components/organisms/AssetActions/Pool/Transactions.module.css b/src/components/organisms/AssetActionHistoryTable.module.css
similarity index 78%
rename from src/components/organisms/AssetActions/Pool/Transactions.module.css
rename to src/components/organisms/AssetActionHistoryTable.module.css
index a9e4e1eb9..20f1fd78e 100644
--- a/src/components/organisms/AssetActions/Pool/Transactions.module.css
+++ b/src/components/organisms/AssetActionHistoryTable.module.css
@@ -1,5 +1,5 @@
-.transactions {
- composes: container from './index.module.css';
+.actions {
+ composes: container from './AssetActions/Pool/index.module.css';
border-top: 1px solid var(--border-color);
margin-top: calc(var(--spacer) / 1.5);
padding: calc(var(--spacer) / 1.5);
@@ -7,12 +7,12 @@
margin-bottom: -2rem;
}
-.transactions [class*='rdt_Pagination'] {
+.actions [class*='rdt_Pagination'] {
margin-bottom: -1rem;
}
.title {
- composes: title from './index.module.css';
+ composes: title from './AssetActions/Pool/index.module.css';
margin-bottom: 0;
display: flex;
align-items: center;
@@ -44,7 +44,7 @@
transform: rotate(180deg);
}
-.transactions [class*='Table-module--table'] {
+.actions [class*='Table-module--table'] {
/*
react-data-table-component sets a default width: 100%
which often leads to unneccessary overflows. Following lines make
@@ -52,6 +52,9 @@
when enough space is available. But it also destroys overflow table on narrow
viewports.
*/
- width: fit-content !important;
- min-width: 100%;
+ width: 100%;
+}
+
+.actions [class*='TableCell'] {
+ width: 140px;
}
diff --git a/src/components/organisms/AssetActionHistoryTable.tsx b/src/components/organisms/AssetActionHistoryTable.tsx
new file mode 100644
index 000000000..5e3a86b83
--- /dev/null
+++ b/src/components/organisms/AssetActionHistoryTable.tsx
@@ -0,0 +1,36 @@
+import React, { ReactElement, useState } from 'react'
+import Button from '../atoms/Button'
+import styles from './AssetActionHistoryTable.module.css'
+import { ReactComponent as Caret } from '../../images/caret.svg'
+import { ReactNode } from 'react-markdown'
+
+export default function AssetActionHistoryTable({
+ title,
+ children
+}: {
+ title: string
+ children: ReactNode
+}): ReactElement {
+ const [open, setOpen] = useState(false)
+ function handleClick() {
+ setOpen(!open)
+ }
+
+ return (
+
+ {/* TODO: onClick on h3 is nasty but we're in a hurry */}
+
+ {`${title} `}
+
+
+ {open === true && children}
+
+ )
+}
diff --git a/src/components/organisms/AssetActions/Compute/index.tsx b/src/components/organisms/AssetActions/Compute/index.tsx
index ec32d2acf..f8bb95943 100644
--- a/src/components/organisms/AssetActions/Compute/index.tsx
+++ b/src/components/organisms/AssetActions/Compute/index.tsx
@@ -38,7 +38,8 @@ import { secondsToString } from '../../../../utils/metadata'
import { AssetSelectionAsset } from '../../../molecules/FormFields/AssetSelection'
import AlgorithmDatasetsListForCompute from '../../AssetContent/AlgorithmDatasetsListForCompute'
import { getPreviousOrders, getPrice } from '../../../../utils/subgraph'
-import { chainIds } from '../../../../../app.config'
+import AssetActionHistoryTable from '../../AssetActionHistoryTable'
+import ComputeJobs from '../../../pages/History/ComputeJobs'
const SuccessAction = () => (