From 9fb4202640f9928f63fed78022371be4f7ae2861 Mon Sep 17 00:00:00 2001 From: Mohammed Abad Date: Tue, 16 Apr 2024 19:14:16 +0100 Subject: [PATCH] reworked the shared modules --- frontend/src/app/shared/shared.module.ts | 32 ++++++++++++++++++++---- 1 file changed, 27 insertions(+), 5 deletions(-) diff --git a/frontend/src/app/shared/shared.module.ts b/frontend/src/app/shared/shared.module.ts index f276f52..aa0fb8b 100644 --- a/frontend/src/app/shared/shared.module.ts +++ b/frontend/src/app/shared/shared.module.ts @@ -1,10 +1,18 @@ import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; -import { NotificationPopupComponent } from './components/notification-popup/notification-popup.component'; -import { DateFormatPipe } from './pipes/date-format/date-format.pipe'; -import { MainCardComponent } from './components/cards/main-card/main-card.component'; import { FormsModule, ReactiveFormsModule } from '@angular/forms'; -import { UserCollectionsModalComponent } from './components/modals/list-selection-modal/user-collections-modal.component'; + +// * cards +import { SeasonMainCardComponent } from './cards/season-main-card/season-main-card.component'; + +// * modals +import { SeenModalComponent } from './components/modals/seen-modal/seen-modal.component'; + +// * pipes +import { DateFormatPipe } from './pipes/date-format/date-format.pipe'; + +// * other +import { RatingModule } from 'ngx-bootstrap/rating'; @NgModule({ declarations: [ @@ -12,6 +20,11 @@ import { UserCollectionsModalComponent } from './components/modals/list-selectio DateFormatPipe, // ? components + SeasonMainCardComponent, + SeenModalComponent, + + // ? other imported components + // NotificationPopupComponent, // MainCardComponent, // DynamicEntryListComponent, @@ -20,10 +33,19 @@ import { UserCollectionsModalComponent } from './components/modals/list-selectio // ? modules ], - imports: [CommonModule, FormsModule, ReactiveFormsModule], + imports: [ + CommonModule, + FormsModule, + ReactiveFormsModule, + + RatingModule.forRoot(), + ], exports: [ //NotificationPopupComponent, DateFormatPipe, + SeasonMainCardComponent, + SeenModalComponent, + RatingModule, ], }) export class SharedModule {}