diff --git a/src/unit-taxonomy-tags-drawer/TagBubble.scss b/src/unit-taxonomy-tags-drawer/TagBubble.scss index 9029be1ed7..7a644f5496 100644 --- a/src/unit-taxonomy-tags-drawer/TagBubble.scss +++ b/src/unit-taxonomy-tags-drawer/TagBubble.scss @@ -5,5 +5,5 @@ } .implicit > .btn-icon-before svg { - color: #E9E6E4; // $light-400; -} \ No newline at end of file + color: #E9E6E4; // $light-400; +} diff --git a/src/unit-taxonomy-tags-drawer/TaxonomyTagsCollapsible.scss b/src/unit-taxonomy-tags-drawer/TaxonomyTagsCollapsible.scss index a73d37ded8..889232db8d 100644 --- a/src/unit-taxonomy-tags-drawer/TaxonomyTagsCollapsible.scss +++ b/src/unit-taxonomy-tags-drawer/TaxonomyTagsCollapsible.scss @@ -33,7 +33,7 @@ } .taxonomy-tags-selector-menu + div { - width: 100% + width: 100%; } .taxonomy-tags-selectable-box-set { diff --git a/src/unit-taxonomy-tags-drawer/TaxonomyTagsDropDownSelector.scss b/src/unit-taxonomy-tags-drawer/TaxonomyTagsDropDownSelector.scss index b3796a34cf..64a8461b25 100644 --- a/src/unit-taxonomy-tags-drawer/TaxonomyTagsDropDownSelector.scss +++ b/src/unit-taxonomy-tags-drawer/TaxonomyTagsDropDownSelector.scss @@ -1,6 +1,6 @@ .taxonomy-tags-arrow-drop-down { - display: 'flex'; - align-items: 'center'; + display: "flex"; + align-items: "center"; cursor: pointer; } diff --git a/src/unit-taxonomy-tags-drawer/api/hooks/api.js b/src/unit-taxonomy-tags-drawer/api/hooks/api.js index bed38102d0..1f99b57479 100644 --- a/src/unit-taxonomy-tags-drawer/api/hooks/api.js +++ b/src/unit-taxonomy-tags-drawer/api/hooks/api.js @@ -36,7 +36,7 @@ export const useUnitTaxonomyTagsData = (unitId) => ( ); /** - * @returns {import("../types.mjs").UseQueryResults} + * @returns {import("../types.mjs").UseQueryResult} */ export const useUnitData = (unitId) => ( useQuery({ diff --git a/src/unit-taxonomy-tags-drawer/api/hooks/selectors.js b/src/unit-taxonomy-tags-drawer/api/hooks/selectors.js index 4516ef6fa2..ccfdb0f7ff 100644 --- a/src/unit-taxonomy-tags-drawer/api/hooks/selectors.js +++ b/src/unit-taxonomy-tags-drawer/api/hooks/selectors.js @@ -2,7 +2,7 @@ import { useTaxonomyTagsData, useUnitTaxonomyTagsData, useUnitData } from './api'; /** - * @returns {import("../types.mjs").TaxonomyTagsData | undefined} TODO: Define type + * @returns {import("../types.mjs").TaxonomyTagsData | undefined} */ export const useTaxonomyTagsDataResponse = (taxonomyId, fullPathProvided) => { const response = useTaxonomyTagsData(taxonomyId, fullPathProvided); diff --git a/src/unit-taxonomy-tags-drawer/api/types.mjs b/src/unit-taxonomy-tags-drawer/api/types.mjs index 15b5cafb1d..91244784be 100644 --- a/src/unit-taxonomy-tags-drawer/api/types.mjs +++ b/src/unit-taxonomy-tags-drawer/api/types.mjs @@ -51,6 +51,48 @@ * @property {boolean} has_partition_group_components */ +/** + * @typedef {Object} TaxonomyTagData + * @property {string} id + * @property {string} display_name + * @property {string} category + * @property {boolean} has_children + * @property {string} edited_on + * @property {boolean} published + * @property {string} published_on + * @property {string} studio_url + * @property {boolean} released_to_students + * @property {string} release_date + * @property {string} visibility_state + * @property {boolean} has_explicit_staff_lock + * @property {string} start + * @property {boolean} graded + * @property {string} due_date + * @property {string} due + * @property {string} relative_weeks_due + * @property {string} format + * @property {boolean} has_changes + * @property {UnitActions} actions + * @property {string} explanatory_message + * @property {string} show_correctness + * @property {boolean} discussion_enabled + * @property {boolean} ancestor_has_staff_lock + * @property {boolean} staff_only_message + * @property {boolean} enable_copy_paste_units + * @property {boolean} has_partition_group_components + */ + +/** + * @typedef {Object} TaxonomyTagsData + * @property {string} next + * @property {string} previous + * @property {number} count + * @property {number} num_pages + * @property {number} current_page + * @property {number} start + * @property {TaxonomyTagData[]} results + */ + /** * @typedef {Object} UseQueryResult * @property {Object} data