Skip to content

Commit

Permalink
feat: add TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
rpenido committed Oct 10, 2024
1 parent d5f1438 commit 545e67b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/library-authoring/component-info/ComponentInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ const ComponentInfo = () => {
} = useAddComponentToCourse();

if (addComponentToCourseSuccess) {
// TODO: Call endpoint to add component to course
window.parent.postMessage('closeComponentPicker', '*');

Check warning on line 39 in src/library-authoring/component-info/ComponentInfo.tsx

View check run for this annotation

Codecov / codecov/patch

src/library-authoring/component-info/ComponentInfo.tsx#L39

Added line #L39 was not covered by tests
}

Expand Down
1 change: 1 addition & 0 deletions src/library-authoring/components/ComponentCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ const ComponentCard = ({ contentHit }: ComponentCardProps) => {
} = useAddComponentToCourse();

if (addComponentToCourseSuccess) {
// TODO: Call endpoint to add component to course
window.parent.postMessage('closeComponentPicker', '*');

Check warning on line 98 in src/library-authoring/components/ComponentCard.tsx

View check run for this annotation

Codecov / codecov/patch

src/library-authoring/components/ComponentCard.tsx#L98

Added line #L98 was not covered by tests
}

Expand Down

0 comments on commit 545e67b

Please sign in to comment.