diff --git a/assets/js/base/components/load-more-button/index.tsx b/assets/js/base/components/load-more-button/index.tsx index da185a9d88d..d5d3f7b767d 100644 --- a/assets/js/base/components/load-more-button/index.tsx +++ b/assets/js/base/components/load-more-button/index.tsx @@ -8,7 +8,7 @@ import type { MouseEventHandler } from 'react'; * Internal dependencies */ import './style.scss'; -import Label from '../../../../../packages/components/label'; +import Label from '../../../../../packages/components/label'; // Imported like this because importing from the components package loads the data stores unnecessarily - not a problem in the front end but would require a lot of unit test rewrites to prevent breaking tests due to incorrect mocks. interface LoadMoreButtonProps { onClick: MouseEventHandler; diff --git a/assets/js/base/components/sort-select/index.tsx b/assets/js/base/components/sort-select/index.tsx index 2a5309fc4c5..f543b164d4c 100644 --- a/assets/js/base/components/sort-select/index.tsx +++ b/assets/js/base/components/sort-select/index.tsx @@ -9,7 +9,7 @@ import type { ChangeEventHandler } from 'react'; * Internal dependencies */ import './style.scss'; -import Label from '../../../../../packages/components/label'; +import Label from '../../../../../packages/components/label'; // Imported like this because importing from the components package loads the data stores unnecessarily - not a problem in the front end but would require a lot of unit test rewrites to prevent breaking tests due to incorrect mocks. interface SortSelectProps { /**