Skip to content

Commit ed0e2e9

Browse files
committed
chore: update imports and fix typos
1 parent 33e562d commit ed0e2e9

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

src/course-outline/status-bar/LegacyStatusBar.test.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import { getConfig, setConfig } from '@edx/frontend-platform/config';
66
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
77

88
import { CourseOutlineStatusBar } from '@src/course-outline/data/types';
9+
import initializeStore from '@src/store';
910
import messages from './messages';
10-
import initializeStore from '../../store';
1111
import { VIDEO_SHARING_OPTIONS } from '../constants';
1212
import { LegacyStatusBar, LegacyStatusBarProps } from './LegacyStatusBar';
1313

@@ -25,12 +25,12 @@ jest.mock('react-router-dom', () => ({
2525
}),
2626
}));
2727

28-
jest.mock('../../generic/data/api', () => ({
29-
...jest.requireActual('../../generic/data/api'),
28+
jest.mock('@src/generic/data/api', () => ({
29+
...jest.requireActual('@src/generic/data/api'),
3030
getTagsCount: jest.fn().mockResolvedValue({ 'course-v1:123': 17 }),
3131
}));
3232

33-
jest.mock('../../help-urls/hooks', () => ({
33+
jest.mock('@src/help-urls/hooks', () => ({
3434
useHelpUrls: () => ({
3535
contentHighlights: 'content-highlights-link',
3636
socialSharing: 'social-sharing-link',

src/course-outline/status-bar/NotificationStatusIcon.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import { FormattedMessage } from '@edx/frontend-platform/i18n';
22
import { Icon } from '@openedx/paragon';
33
import { NotificationsNone } from '@openedx/paragon/icons';
4-
import { HooKType, useDynamicHookShim } from './hooks';
4+
import { HookType, useDynamicHookShim } from './hooks';
55
import messages from './messages';
66

77
// Component that actually calls the loaded hook
8-
const NotificationHookConsumer = ({ hook }: { hook: () => HooKType }) => {
8+
const NotificationHookConsumer = ({ hook }: { hook: () => HookType }) => {
99
// The hook is now called on **every** render of this component
1010
const { notificationAppData } = hook();
1111

src/course-outline/status-bar/hooks.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* istanbul ignore file */
22
import React from 'react';
33

4-
export interface HooKType {
4+
export interface HookType {
55
notificationAppData: {
66
tabsCount?: {
77
count?: number;
@@ -11,7 +11,7 @@ export interface HooKType {
1111

1212
// Load the hook module asynchronously
1313
export function useDynamicHookShim() {
14-
const [hook, setHook] = React.useState<(() => HooKType) | null>(null);
14+
const [hook, setHook] = React.useState<(() => HookType) | null>(null);
1515

1616
React.useEffect(() => {
1717
let cancelled = false;

0 commit comments

Comments
 (0)