Skip to content

Commit

Permalink
fix: updates package reference for useLocation (#1143)
Browse files Browse the repository at this point in the history
* fix: updates package reference for useLocation

* fix: update dependency

* chore: PR fixes

* chore: Pr fixes 2
  • Loading branch information
brobro10000 authored Dec 15, 2023
1 parent 13ad64c commit 27a7d6f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import { Provider } from 'react-redux';
import configureMockStore from 'redux-mock-store';
import thunk from 'redux-thunk';
import { renderWithRouter } from '@edx/frontend-enterprise-utils';
import { useHistory } from 'react-router';
import { IntlProvider } from '@edx/frontend-platform/i18n';
import { useHistory } from 'react-router-dom';
import ContentHighlights from '../ContentHighlights';
import { EnterpriseAppContext } from '../../EnterpriseApp/EnterpriseAppContextProvider';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import algoliasearch from 'algoliasearch/lite';
import { Row, Col } from '@edx/paragon';

import { SearchData, SEARCH_FACET_FILTERS } from '@edx/frontend-enterprise-catalog-search';
import { useHistory } from 'react-router';
import { useLocation, useHistory } from 'react-router-dom';
import CatalogSearch from './search/CatalogSearch';
import {
LANGUAGE_REFINEMENT,
Expand All @@ -14,7 +14,7 @@ import { configuration } from '../../config';

const BudgetDetailCatalogTabContents = () => {
const history = useHistory();
const { location } = history;
const location = useLocation();
const { state: locationState } = location;
const catalogContainerRef = useRef();

Expand Down

0 comments on commit 27a7d6f

Please sign in to comment.