Skip to content

Commit

Permalink
style: Fix nits
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisChV committed Mar 11, 2024
1 parent 67cfe58 commit c83c2bc
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/content-tags-drawer/messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
7 changes: 4 additions & 3 deletions src/content-tags-drawer/tags-sidebar/TagsSidebarBody.jsx
Original file line number Diff line number Diff line change
@@ -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';
Expand All @@ -21,7 +22,7 @@ const TagsSidebarBody = () => {
const {
data: contentTaxonomyTagsData,
isSuccess: isContentTaxonomyTagsLoaded,
} = useContentTaxonomyTagsData(contentId);
} = useContentTaxonomyTagsData(contentId || '');

const buildTagsTree = (contentTags) => {
const resultTree = {};
Expand Down Expand Up @@ -85,7 +86,7 @@ const TagsSidebarBody = () => {
</div>
)}

<Button className="mt-3 ml-2" variant="outline-primary" onClick={() => setShowManageTags(true)}>
<Button className="mt-3 ml-2" variant="outline-primary" size="sm" onClick={() => setShowManageTags(true)}>
{intl.formatMessage(messages.manageTagsButton)}
</Button>
</Stack>
Expand Down
4 changes: 3 additions & 1 deletion src/content-tags-drawer/tags-sidebar/TagsSidebarHeader.jsx
Original file line number Diff line number Diff line change
@@ -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';
Expand All @@ -13,7 +15,7 @@ const TagsSidebarHeader = () => {
const {
data: contentTaxonomyTagsCount,
isSuccess: isContentTaxonomyTagsCountLoaded,
} = useContentTaxonomyTagsCount(contentId);
} = useContentTaxonomyTagsCount(contentId || '');

return (
<Stack className="course-unit-sidebar-header justify-content-between" direction="horizontal">
Expand Down
2 changes: 2 additions & 0 deletions src/content-tags-drawer/tags-sidebar/TagsTree.jsx
Original file line number Diff line number Diff line change
@@ -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';
Expand Down

0 comments on commit c83c2bc

Please sign in to comment.