diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index 1766ef1..0000000 --- a/.editorconfig +++ /dev/null @@ -1,12 +0,0 @@ -root = true - -[*] -charset = utf-8 -indent_size = 4 -end_of_line = lf -indent_style = space -insert_final_newline = true -trim_trailing_whitespace = true - -[*.{json,yml,yaml,md}] -indent_size = 2 diff --git a/.prettierrc b/.prettierrc index 49955e2..40d9f61 100644 --- a/.prettierrc +++ b/.prettierrc @@ -1,5 +1,15 @@ { - "semi": false, - "singleQuote": true, - "trailingComma": "none" + "semi": false, + "singleQuote": true, + "trailingComma": "none", + "tabWidth": 4, + "endOfLine": "lf", + "overrides": [ + { + "files": ["*.{json,yml,yaml,md}"], + "options": { + "tabWidth": 2 + } + } + ] } diff --git a/CHANGELOG.md b/CHANGELOG.md index c41f189..c8173d7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file. Dates are d Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). +#### [v2.0.1](https://github.com/oceanprotocol/commons/compare/v2.0.0...v2.0.1) + +> 7 January 2020 + +- more additionalInformation checks [`#213`](https://github.com/oceanprotocol/commons/pull/213) +- remove editorconfig [`#211`](https://github.com/oceanprotocol/commons/pull/211) +- remove editorconfig, define all styling in prettierrc [`f8dfaa4`](https://github.com/oceanprotocol/commons/commit/f8dfaa438c42e9d6c25ae9ac096129da95e431c3) + #### [v2.0.0](https://github.com/oceanprotocol/commons/compare/v2.0.0-beta.3...v2.0.0) > 9 December 2019 @@ -11,7 +19,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). - Migrate to new v2 DDO structure [`#207`](https://github.com/oceanprotocol/commons/pull/207) - bump dependencies [`a8c695e`](https://github.com/oceanprotocol/commons/commit/a8c695e16f07b603250aa0eae5aa64d6275072b6) - test and package fixes [`3df046b`](https://github.com/oceanprotocol/commons/commit/3df046bbea14c0d0b4817976b8496c5af365bc0d) -- bump to squid-js v1.0.0 [`7f9daa0`](https://github.com/oceanprotocol/commons/commit/7f9daa0d8277502dae4594c9d6779eebec8a3a90) +- Release 2.0.0 [`70a3339`](https://github.com/oceanprotocol/commons/commit/70a3339f8b0fdbabad1475659639f145ec68ed6c) #### [v2.0.0-beta.3](https://github.com/oceanprotocol/commons/compare/v1.3.2...v2.0.0-beta.3) diff --git a/client/package-lock.json b/client/package-lock.json index 02e02b6..2056379 100644 --- a/client/package-lock.json +++ b/client/package-lock.json @@ -1,6 +1,6 @@ { "name": "commons-client", - "version": "2.0.0", + "version": "2.0.1", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/client/package.json b/client/package.json index f768dd2..d850045 100644 --- a/client/package.json +++ b/client/package.json @@ -1,7 +1,7 @@ { "name": "commons-client", "description": "Ocean Protocol marketplace frontend to explore, download, and publish open data sets.", - "version": "2.0.0", + "version": "2.0.1", "license": "Apache-2.0", "scripts": { "start": "react-scripts start", diff --git a/client/src/components/molecules/AssetTeaser.tsx b/client/src/components/molecules/AssetTeaser.tsx index ea64f71..c0d4df5 100644 --- a/client/src/components/molecules/AssetTeaser.tsx +++ b/client/src/components/molecules/AssetTeaser.tsx @@ -39,15 +39,17 @@ const AssetTeaser = ({ } > - {additionalInformation.categories && !minimal && ( - - )} + {additionalInformation && + additionalInformation.categories && + !minimal && ( + + )}

{main.name}

-

test

- {!minimal && ( + + {additionalInformation && !minimal && (
{additionalInformation.description} @@ -55,9 +57,10 @@ const AssetTeaser = ({
)}