diff --git a/client/src/components/atoms/Form/Input.tsx b/client/src/components/atoms/Form/Input.tsx index ec5e026..f25f808 100644 --- a/client/src/components/atoms/Form/Input.tsx +++ b/client/src/components/atoms/Form/Input.tsx @@ -82,7 +82,7 @@ export default class Input extends PureComponent { required, onChange, value, - disabled + disabled, small } = this.props diff --git a/client/src/routes/Details/AssetDetails.tsx b/client/src/routes/Details/AssetDetails.tsx index 6533de3..cd8381c 100644 --- a/client/src/routes/Details/AssetDetails.tsx +++ b/client/src/routes/Details/AssetDetails.tsx @@ -1,7 +1,7 @@ import React, { PureComponent, ChangeEvent } from 'react' import { Link } from 'react-router-dom' import Moment from 'react-moment' -import { DDO, MetaData, File, Logger } from '@oceanprotocol/squid' +import { DDO, MetaData, Logger } from '@oceanprotocol/squid' import Input from '../../components/atoms/Form/Input' import Markdown from '../../components/atoms/Markdown' import { User } from '../../context' @@ -197,7 +197,7 @@ export default class AssetDetails extends PureComponent< ) - private Category = ({ value }: { value: string }) => + private Category = ({ value }: { value: string[] }) => this.state.isEditMode ? ( { public render() { const { metadata, ddo } = this.props const { base } = metadata + const { + isEditMode, + copyrightHolder, + dateCreated, + categories, + description + } = this.state return ( <> - + {description && } @@ -341,4 +347,5 @@ export default class AssetDetails extends PureComponent { ) } } + AssetDetails.contextType = User