From 60c8cf7ec144d75a57484c5311c03dfa2f96abeb Mon Sep 17 00:00:00 2001 From: sam-m-m Date: Thu, 4 Mar 2021 18:37:35 -0800 Subject: [PATCH] fix #244 - Fix - typescript import bug (Filters) --- src/__mocks__/index.ts | 2 -- .../Filters/fixtures/0_sample_data.ts} | 2 +- src/components/Filters/utils.ts | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) delete mode 100644 src/__mocks__/index.ts rename src/{__mocks__/filter_mock_data.ts => components/Filters/fixtures/0_sample_data.ts} (93%) diff --git a/src/__mocks__/index.ts b/src/__mocks__/index.ts deleted file mode 100644 index 37e8cf61..00000000 --- a/src/__mocks__/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from './filter_mock_data' -export * from './table_mock_data' diff --git a/src/__mocks__/filter_mock_data.ts b/src/components/Filters/fixtures/0_sample_data.ts similarity index 93% rename from src/__mocks__/filter_mock_data.ts rename to src/components/Filters/fixtures/0_sample_data.ts index 639963db..d69d4976 100644 --- a/src/__mocks__/filter_mock_data.ts +++ b/src/components/Filters/fixtures/0_sample_data.ts @@ -1,4 +1,4 @@ -import { FilterOptions } from '../components/Filters' +import { FilterOptions } from '../types' export const mockDynamicFilterOptions = [ { diff --git a/src/components/Filters/utils.ts b/src/components/Filters/utils.ts index 3fd3bc02..ae264e56 100644 --- a/src/components/Filters/utils.ts +++ b/src/components/Filters/utils.ts @@ -18,7 +18,7 @@ import { import { mockDynamicFilterOptions, mockFilterOptions -} from '__mocks__/filter_mock_data' +} from './fixtures/0_sample_data' import { styleguide, ThemeType } from 'components/assets/styles' import { useEffect, useState } from 'react'