From 1aac2443296c76e53db837e0413d2c45280b3564 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Thu, 1 Oct 2020 17:13:19 +0200 Subject: [PATCH] case fix --- src/components/molecules/AssetTeaser.tsx | 2 +- src/components/organisms/AssetContent/MetaFull.tsx | 2 +- src/components/organisms/AssetContent/MetaSecondary.tsx | 2 +- src/components/organisms/AssetContent/index.tsx | 2 +- src/components/organisms/AssetList.tsx | 2 +- src/components/pages/Publish/utils.ts | 2 +- src/components/templates/AssetDetails.tsx | 2 +- src/models/Asset.ts | 2 +- src/models/FormPublish.ts | 2 +- tests/unit/AssetModel.test.ts | 2 +- tests/unit/__fixtures__/testFormData.ts | 2 +- tests/unit/components/PublishForm.test.tsx | 2 +- 12 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/components/molecules/AssetTeaser.tsx b/src/components/molecules/AssetTeaser.tsx index 125e12073..cc20e8036 100644 --- a/src/components/molecules/AssetTeaser.tsx +++ b/src/components/molecules/AssetTeaser.tsx @@ -1,7 +1,7 @@ import React from 'react' import { Link } from 'gatsby' import Dotdotdot from 'react-dotdotdot' -import { MetadataMarket } from '../../@types/Metadata' +import { MetadataMarket } from '../../@types/MetaData' import Price from '../atoms/Price' import styles from './AssetTeaser.module.css' import { DDO } from '@oceanprotocol/lib' diff --git a/src/components/organisms/AssetContent/MetaFull.tsx b/src/components/organisms/AssetContent/MetaFull.tsx index 43c9f4249..4c5e43b94 100644 --- a/src/components/organisms/AssetContent/MetaFull.tsx +++ b/src/components/organisms/AssetContent/MetaFull.tsx @@ -2,7 +2,7 @@ import React, { ReactElement, useEffect, useState } from 'react' import Time from '../../atoms/Time' import MetaItem from './MetaItem' import styles from './MetaFull.module.css' -import { MetadataMarket } from '../../../@types/Metadata' +import { MetadataMarket } from '../../../@types/MetaData' import { DDO } from '@oceanprotocol/lib' import EtherscanLink from '../../atoms/EtherscanLink' diff --git a/src/components/organisms/AssetContent/MetaSecondary.tsx b/src/components/organisms/AssetContent/MetaSecondary.tsx index 152333fa0..805058b77 100644 --- a/src/components/organisms/AssetContent/MetaSecondary.tsx +++ b/src/components/organisms/AssetContent/MetaSecondary.tsx @@ -1,7 +1,7 @@ import React, { ReactElement } from 'react' import MetaItem from './MetaItem' import styles from './MetaSecondary.module.css' -import { MetadataMarket } from '../../../@types/Metadata' +import { MetadataMarket } from '../../../@types/MetaData' import Tags from '../../atoms/Tags' import Button from '../../atoms/Button' diff --git a/src/components/organisms/AssetContent/index.tsx b/src/components/organisms/AssetContent/index.tsx index 73f90f8fb..dc4cfa35f 100644 --- a/src/components/organisms/AssetContent/index.tsx +++ b/src/components/organisms/AssetContent/index.tsx @@ -1,4 +1,4 @@ -import { MetadataMarket } from '../../../@types/Metadata' +import { MetadataMarket } from '../../../@types/MetaData' import React, { ReactElement } from 'react' import Time from '../../atoms/Time' import { Link } from 'gatsby' diff --git a/src/components/organisms/AssetList.tsx b/src/components/organisms/AssetList.tsx index c696c3077..119ebbc2d 100644 --- a/src/components/organisms/AssetList.tsx +++ b/src/components/organisms/AssetList.tsx @@ -5,7 +5,7 @@ import { useLocation, useNavigate } from '@reach/router' import Pagination from '../molecules/Pagination' import { updateQueryStringParameter } from '../../utils' import styles from './AssetList.module.css' -import { MetadataMarket } from '../../@types/Metadata' +import { MetadataMarket } from '../../@types/MetaData' import { DDO } from '@oceanprotocol/lib' import { useOcean } from '@oceanprotocol/react' diff --git a/src/components/pages/Publish/utils.ts b/src/components/pages/Publish/utils.ts index f30fe86b4..10d377ef8 100644 --- a/src/components/pages/Publish/utils.ts +++ b/src/components/pages/Publish/utils.ts @@ -1,4 +1,4 @@ -import { MetadataMarket, MetadataPublishForm } from '../../../@types/Metadata' +import { MetadataMarket, MetadataPublishForm } from '../../../@types/MetaData' import { toStringNoMS } from '../../../utils' import AssetModel from '../../../models/Asset' diff --git a/src/components/templates/AssetDetails.tsx b/src/components/templates/AssetDetails.tsx index e4b6563cb..a2568f265 100644 --- a/src/components/templates/AssetDetails.tsx +++ b/src/components/templates/AssetDetails.tsx @@ -2,7 +2,7 @@ import React, { useState, useEffect, ReactElement } from 'react' import { Router } from '@reach/router' import AssetContent from '../../components/organisms/AssetContent' import Layout from '../../components/Layout' -import { MetadataMarket } from '../../@types/Metadata' +import { MetadataMarket } from '../../@types/MetaData' import { MetadataStore, Logger, DDO } from '@oceanprotocol/lib' import Alert from '../../components/atoms/Alert' import Loader from '../../components/atoms/Loader' diff --git a/src/models/Asset.ts b/src/models/Asset.ts index f1fe52840..8033b6bb5 100644 --- a/src/models/Asset.ts +++ b/src/models/Asset.ts @@ -1,4 +1,4 @@ -import { MetadataMarket } from '../@types/Metadata' +import { MetadataMarket } from '../@types/MetaData' const AssetModel: MetadataMarket = { // OEP-8 Attributes diff --git a/src/models/FormPublish.ts b/src/models/FormPublish.ts index 3a8a2bc7b..892070ac9 100644 --- a/src/models/FormPublish.ts +++ b/src/models/FormPublish.ts @@ -1,4 +1,4 @@ -import { MetadataPublishForm } from '../@types/Metadata' +import { MetadataPublishForm } from '../@types/MetaData' import { File as FileMetadata } from '@oceanprotocol/lib' import * as Yup from 'yup' diff --git a/tests/unit/AssetModel.test.ts b/tests/unit/AssetModel.test.ts index 52cfdfc5e..beb7a29f6 100644 --- a/tests/unit/AssetModel.test.ts +++ b/tests/unit/AssetModel.test.ts @@ -1,5 +1,5 @@ import AssetModel from '../../src/models/Asset' -import { MetadataMarket } from '../../src/@types/Metadata' +import { MetadataMarket } from '../../src/@types/MetaData' describe('AssetModel', () => { it('values can be reassigned', () => { diff --git a/tests/unit/__fixtures__/testFormData.ts b/tests/unit/__fixtures__/testFormData.ts index f6dd032e1..679331aee 100644 --- a/tests/unit/__fixtures__/testFormData.ts +++ b/tests/unit/__fixtures__/testFormData.ts @@ -1,4 +1,4 @@ -import { MetadataPublishForm } from '../../../src/@types/Metadata' +import { MetadataPublishForm } from '../../../src/@types/MetaData' const testFormData: MetadataPublishForm = { author: '', diff --git a/tests/unit/components/PublishForm.test.tsx b/tests/unit/components/PublishForm.test.tsx index 2886c5c7d..abf3c0fe8 100644 --- a/tests/unit/components/PublishForm.test.tsx +++ b/tests/unit/components/PublishForm.test.tsx @@ -4,7 +4,7 @@ import { transformPublishFormToMetadata } from '../../../src/components/pages/Pu import { MetadataMarket, MetadataPublishForm -} from '../../../src/@types/Metadata' +} from '../../../src/@types/MetaData' import PublishForm from '../../../src/components/pages/Publish/PublishForm' import publishFormData from '../__fixtures__/testFormData' import content from '../../../content/pages/publish.json'