diff --git a/src/content-tags-drawer/messages.js b/src/content-tags-drawer/messages.js index 26df2c6d77..bf55237f7f 100644 --- a/src/content-tags-drawer/messages.js +++ b/src/content-tags-drawer/messages.js @@ -35,7 +35,7 @@ const messages = defineMessages({ }, manageTagsButton: { id: 'course-authoring.content-tags-drawer.button.manage', - defaultMessage: 'Manage tags', + defaultMessage: 'Manage Tags', }, tagsSidebarTitle: { id: 'course-authoring.course-unit.sidebar.tags.title', diff --git a/src/content-tags-drawer/tags-sidebar/TagsSidebarBody.jsx b/src/content-tags-drawer/tags-sidebar/TagsSidebarBody.jsx index d981d0353c..9304fbf503 100644 --- a/src/content-tags-drawer/tags-sidebar/TagsSidebarBody.jsx +++ b/src/content-tags-drawer/tags-sidebar/TagsSidebarBody.jsx @@ -1,4 +1,5 @@ -import { useState, useMemo } from 'react'; +// @ts-check +import React, { useState, useMemo } from 'react'; import { Card, Stack, Button, Sheet, Collapsible, Icon, } from '@openedx/paragon'; @@ -21,7 +22,7 @@ const TagsSidebarBody = () => { const { data: contentTaxonomyTagsData, isSuccess: isContentTaxonomyTagsLoaded, - } = useContentTaxonomyTagsData(contentId); + } = useContentTaxonomyTagsData(contentId || ''); const buildTagsTree = (contentTags) => { const resultTree = {}; @@ -85,7 +86,7 @@ const TagsSidebarBody = () => { )} - diff --git a/src/content-tags-drawer/tags-sidebar/TagsSidebarHeader.jsx b/src/content-tags-drawer/tags-sidebar/TagsSidebarHeader.jsx index 83b5cd4457..9b58b48539 100644 --- a/src/content-tags-drawer/tags-sidebar/TagsSidebarHeader.jsx +++ b/src/content-tags-drawer/tags-sidebar/TagsSidebarHeader.jsx @@ -1,3 +1,5 @@ +// @ts-check +import React from 'react'; import { Stack } from '@openedx/paragon'; import { useParams } from 'react-router-dom'; import { useIntl } from '@edx/frontend-platform/i18n'; @@ -13,7 +15,7 @@ const TagsSidebarHeader = () => { const { data: contentTaxonomyTagsCount, isSuccess: isContentTaxonomyTagsCountLoaded, - } = useContentTaxonomyTagsCount(contentId); + } = useContentTaxonomyTagsCount(contentId || ''); return ( diff --git a/src/content-tags-drawer/tags-sidebar/TagsTree.jsx b/src/content-tags-drawer/tags-sidebar/TagsTree.jsx index 9647ff949a..df9923271a 100644 --- a/src/content-tags-drawer/tags-sidebar/TagsTree.jsx +++ b/src/content-tags-drawer/tags-sidebar/TagsTree.jsx @@ -1,3 +1,5 @@ +// @ts-check +import React from 'react'; import PropTypes from 'prop-types'; import { Icon } from '@openedx/paragon'; import { Tag } from '@openedx/paragon/icons';