Skip to content

Commit

Permalink
refactor: rebase upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
navinkarkera committed Sep 30, 2024
1 parent 2f2442c commit a92f68f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
7 changes: 6 additions & 1 deletion src/library-authoring/components/CollectionCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import {
useToggle,
} from '@openedx/paragon';
import { MoreVert } from '@openedx/paragon/icons';
import { useContext } from 'react';
import { Link } from 'react-router-dom';

import { type CollectionHit } from '../../search-manager';
Expand Down Expand Up @@ -75,6 +74,12 @@ const CollectionMenu = ({ collectionHit } : CollectionCardProps) => {
<Dropdown.Item onClick={openDeleteModal}>
<FormattedMessage {...messages.deleteCollection} />
</Dropdown.Item>
<Dropdown.Item
as={Link}
to={`/library/${collectionHit.contextKey}/collection/${collectionHit.blockId}/`}
>
<FormattedMessage {...messages.menuOpen} />
</Dropdown.Item>
</Dropdown.Menu>
</Dropdown>
<DeleteModal
Expand Down
1 change: 0 additions & 1 deletion src/search-manager/data/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ interface BaseContentHit {
id: string;
type: 'course_block' | 'library_block' | 'collection';
displayName: string;
usageKey: string;
blockId: string;
usageKey: string;
/** The course or library ID */
Expand Down

0 comments on commit a92f68f

Please sign in to comment.