Skip to content

Commit 4217c26

Browse files
committed
fix: lint and cleanup
1 parent 588b7be commit 4217c26

6 files changed

Lines changed: 9 additions & 8 deletions

File tree

src/taxonomy/data/apiHooks.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
import { useQuery, useMutation, useQueryClient } from '@tanstack/react-query';
1414
import { camelCaseObject } from '@edx/frontend-platform';
1515
import { getAuthenticatedHttpClient } from '@edx/frontend-platform/auth';
16-
import { useIntl } from '@edx/frontend-platform/i18n';
1716
import { apiUrls, ALL_TAXONOMIES, getApiErrorMessage } from './api';
1817
import * as api from './api';
1918
import type { QueryOptions, TagListData } from './types';

src/taxonomy/tag-list/OptionalExpandLink.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { ExpandLess, ExpandMore } from '@openedx/paragon/icons';
44
import { Row } from '@tanstack/react-table';
55
import { useIntl } from '@edx/frontend-platform/i18n';
66

7-
import type { TreeRowData } from '../tree-table/types';
7+
import type { TreeRowData } from '@src/taxonomy/tree-table/types';
88
import messages from './messages';
99

1010
interface OptionalExpandLinkProps {

src/taxonomy/tag-list/TagListTable.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ import React, {
44
useEffect,
55
} from 'react';
66
import type { PaginationState } from '@tanstack/react-table';
7-
import { useTagListData, useCreateTag, useUpdateTag } from '../data/apiHooks';
7+
import { TableView } from '@src/taxonomy/tree-table';
8+
import { useTagListData, useCreateTag, useUpdateTag } from '@src/taxonomy/data/apiHooks';
89
import { TagTree } from './tagTree';
9-
import { TableView } from '../tree-table';
1010
import type {
1111
RowId,
1212
TreeColumnDef,

src/taxonomy/tag-list/hooks.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
import { useReducer } from 'react';
22
import { useIntl } from '@edx/frontend-platform/i18n';
33

4-
import { useCreateTag, useUpdateTag } from '../data/apiHooks';
4+
import globalMessages from '@src/messages';
5+
import { useCreateTag, useUpdateTag } from '@src/taxonomy/data/apiHooks';
6+
import type { RowId } from '@src/taxonomy/tree-table/types';
57
import { TagTree } from './tagTree';
68
import { TagListTableError } from './errors';
7-
import type { RowId } from '../tree-table/types';
89
import {
910
TABLE_MODES,
1011
TRANSITION_TABLE,

src/taxonomy/tag-list/tagTree.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
import type { TagData } from '@src/taxonomy/data/types';
12
import { TagTreeError } from './errors';
2-
import type { TagData } from '../data/types';
33

44
export interface TagTreeNode extends TagData {
55
subRows?: TagTreeNode[];

src/taxonomy/tree-table/EditableCell.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@ import React, {
77

88
import { Form } from '@openedx/paragon';
99
import { useIntl } from '@edx/frontend-platform/i18n';
10+
11+
import OptionalExpandLink from '@src/taxonomy/tag-list/OptionalExpandLink';
1012
import messages from './messages';
11-
import OptionalExpandLink from '../tag-list/OptionalExpandLink';
1213

1314
/**
1415
* Props for the EditableCell component.

0 commit comments

Comments
 (0)