From 77ea9d0432568bfcd5a97bf8562ea3cdd9fb33ea Mon Sep 17 00:00:00 2001 From: mihaisc Date: Wed, 27 May 2020 17:20:31 +0300 Subject: [PATCH] compute and transactions fix --- package-lock.json | 6 +- package.json | 2 +- site.config.js | 2 +- src/components/atoms/BaseDialog.module.css | 6 ++ src/components/atoms/BaseDiaog.tsx | 33 ++++++++ src/components/atoms/Table/DateCell.tsx | 1 - .../molecules/PublishForm/PublishForm.tsx | 6 +- src/components/organisms/Compute.tsx | 7 +- src/components/organisms/ConsumedList.tsx | 31 ++------ src/components/organisms/JobsList.tsx | 75 +++++++++++++++---- .../templates/AssetDetails/index.tsx | 2 +- src/config/ocean.ts | 38 +++++++--- src/pages/asset/[did].tsx | 24 +++++- 13 files changed, 164 insertions(+), 69 deletions(-) create mode 100644 src/components/atoms/BaseDialog.module.css create mode 100644 src/components/atoms/BaseDiaog.tsx diff --git a/package-lock.json b/package-lock.json index e9ba1d25a..e23b67b0d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3397,9 +3397,9 @@ "integrity": "sha512-915dcnzCHEuvsmRKqVj0RxHT3T386lSJh8WREe4dsnrXHsi1ULNYxX0Ts/cvalv6bRL+aqyaZ6gN3l3nkfwEDg==" }, "@oceanprotocol/react": { - "version": "0.0.10", - "resolved": "https://registry.npmjs.org/@oceanprotocol/react/-/react-0.0.10.tgz", - "integrity": "sha512-tkNmKTFvHgZC1cU8JiZ85z+msGjc5lzO1kbcgYCLHtuqAhSKFkMZl6j87XpM147hBqJBg3mE5J5OrRrbN5SedA==", + "version": "0.0.11", + "resolved": "https://registry.npmjs.org/@oceanprotocol/react/-/react-0.0.11.tgz", + "integrity": "sha512-uve2rxkqD83lNo77COSzw3/38JtUkxwfTtZHmMjLfOcvn0UD98RDS6oP1+BDzqH9K2AuDvIeTwu/YGAISskL/w==", "requires": { "@oceanprotocol/squid": "^2.2.0", "axios": "^0.19.2", diff --git a/package.json b/package.json index 498a658d8..88f75f181 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ }, "dependencies": { "@oceanprotocol/art": "^2.2.0", - "@oceanprotocol/react": "0.0.10", + "@oceanprotocol/react": "0.0.11", "@oceanprotocol/squid": "^2.2.0", "@oceanprotocol/typographies": "^0.1.0", "@sindresorhus/slugify": "^1.0.0", diff --git a/site.config.js b/site.config.js index 2b40f9891..4b3147c61 100644 --- a/site.config.js +++ b/site.config.js @@ -1,5 +1,5 @@ module.exports = { - title: 'Data Marketplace', + title: 'Ocean Market', description: `A marketplace to find and publish open data sets in the Ocean Network.`, url: 'https://dexfreight.oceanprotocol.com', copyright: diff --git a/src/components/atoms/BaseDialog.module.css b/src/components/atoms/BaseDialog.module.css new file mode 100644 index 000000000..504d63c64 --- /dev/null +++ b/src/components/atoms/BaseDialog.module.css @@ -0,0 +1,6 @@ +.customOverlay { + + } + .customModal { + border-radius: 15px; + } \ No newline at end of file diff --git a/src/components/atoms/BaseDiaog.tsx b/src/components/atoms/BaseDiaog.tsx new file mode 100644 index 000000000..43e5b122f --- /dev/null +++ b/src/components/atoms/BaseDiaog.tsx @@ -0,0 +1,33 @@ +import React from 'react' +import styles from './BaseDialog.module.css' +import { Modal } from "react-responsive-modal"; + + +export default function BaseDialog({ + open, + title, + onClose, + children, + disableClose, + actions, + ...other }: { + open: boolean + title: string + onClose: () => void + children: React.ReactNode + disableClose?: boolean + actions?: any + }) { + + return ( + +

{title}

+

+ {children} +

+
+ ) +} diff --git a/src/components/atoms/Table/DateCell.tsx b/src/components/atoms/Table/DateCell.tsx index be14222e2..0d4f24d0e 100644 --- a/src/components/atoms/Table/DateCell.tsx +++ b/src/components/atoms/Table/DateCell.tsx @@ -2,6 +2,5 @@ import React from 'react' import Time from '../Time' export default function DateCell({ date }: { date: any }) { - console.log(date) return date &&