Skip to content

Commit

Permalink
MOBILE-4759 chore: Always use CoreSharedModule on pages and components
Browse files Browse the repository at this point in the history
  • Loading branch information
crazyserver committed Feb 4, 2025
1 parent 740550e commit 788e40c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import { CoreCourseAnyCourseData } from '@features/courses/services/courses';
import { CoreCourseModuleCompletionData, CoreCourseModuleData, CoreCourseSection } from '@features/course/services/course-helper';
import { CoreCourse } from '@features/course/services/course';
import type { CoreCourseModuleMainActivityComponent } from '@features/course/classes/main-activity-component';
import { CoreSharedModule } from '@/core/shared.module';

/**
* Component to display single activity format. It will determine the right component to use and instantiate it.
Expand All @@ -33,7 +34,7 @@ import type { CoreCourseModuleMainActivityComponent } from '@features/course/cla
styleUrl: 'single-activity.scss',
standalone: true,
imports: [
CoreDynamicComponent,
CoreSharedModule,
],
})
export class CoreCourseFormatSingleActivityComponent implements OnChanges {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { CoreUserProfileFieldDelegate } from '@features/user/services/user-profi
import { CoreUtils } from '@singletons/utils';
import { ContextLevel } from '@/core/constants';
import { toBoolean } from '@/core/transforms/boolean';
import { CoreDynamicComponent } from '../../../../components/dynamic-component/dynamic-component';
import { CoreSharedModule } from '@/core/shared.module';

/**
* Directive to render user profile field.
Expand All @@ -31,7 +31,7 @@ import { CoreDynamicComponent } from '../../../../components/dynamic-component/d
templateUrl: 'core-user-profile-field.html',
standalone: true,
imports: [
CoreDynamicComponent,
CoreSharedModule,
],
})
export class CoreUserProfileFieldComponent implements OnInit {
Expand Down
4 changes: 2 additions & 2 deletions src/core/features/usertours/components/user-tour/user-tour.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import { CoreDom } from '@singletons/dom';
import { CoreEventObserver, CoreEvents } from '@singletons/events';
import { COLLAPSIBLE_HEADER_UPDATED } from '@directives/collapsible-header';
import { MAIN_MENU_VISIBILITY_UPDATED_EVENT } from '@features/mainmenu/constants';
import { NgIf } from '@angular/common';
import { CoreSharedModule } from '@/core/shared.module';

const ANIMATION_DURATION = 200;
const USER_TOURS_BACK_BUTTON_PRIORITY = 100;
Expand All @@ -52,7 +52,7 @@ const BACKDROP_DISMISS_SAFETY_TRESHOLD = 1000;
styleUrl: 'user-tour.scss',
standalone: true,
imports: [
NgIf,
CoreSharedModule,
],
})
export class CoreUserToursUserTourComponent implements AfterViewInit, OnDestroy {
Expand Down

0 comments on commit 788e40c

Please sign in to comment.