Skip to content

Commit

Permalink
fix: resolve conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
navinkarkera committed Oct 8, 2024
1 parent 5672b91 commit 71f735a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/library-authoring/components/CollectionCard.test.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import { initializeMocks, render as baseRender, screen, waitFor, waitForElementToBeRemoved, within } from '../../testUtils';
import userEvent from '@testing-library/user-event';
import type MockAdapter from 'axios-mock-adapter';

import {
initializeMocks, render as baseRender, screen, waitFor, waitForElementToBeRemoved, within,
} from '../../testUtils';
import { LibraryProvider } from '../common/context';
import { type CollectionHit } from '../../search-manager';
import CollectionCard from './CollectionCard';
Expand Down
3 changes: 1 addition & 2 deletions src/library-authoring/components/CollectionCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const CollectionMenu = ({ collectionHit } : CollectionMenuProps) => {
const { showToast } = useContext(ToastContext);
const [isDeleteModalOpen, openDeleteModal, closeDeleteModal] = useToggle(false);
const [confirmBtnState, setConfirmBtnState] = useState('default');
const { closeLibrarySidebar, currentCollectionId } = useContext(LibraryContext);
const { closeLibrarySidebar, currentCollectionId } = useLibraryContext();

const restoreCollectionMutation = useRestoreCollection(collectionHit.contextKey, collectionHit.blockId);
const restoreCollection = useCallback(() => {
Expand Down Expand Up @@ -108,7 +108,6 @@ type CollectionCardProps = {
};

const CollectionCard = ({ collectionHit } : CollectionCardProps) => {
const intl = useIntl();
const {
openCollectionInfoSidebar,
} = useLibraryContext();
Expand Down

0 comments on commit 71f735a

Please sign in to comment.