Skip to content

Commit

Permalink
fix Olivia
Browse files Browse the repository at this point in the history
  • Loading branch information
kembris committed Jul 31, 2024
1 parent acc3f23 commit 2cadb23
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,14 @@ describe('MetadataQualityComponent', () => {
MetadataQualityComponent,
MetadataQualityItemComponent,
ProgressBarComponent,
PopoverComponent,
],
imports: [
UtilSharedModule,
CommonModule,
MatIconModule,
UtilI18nModule,
TranslateModule.forRoot(TRANSLATE_DEFAULT_CONFIG),
PopoverComponent,
],
}).compileComponents()
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ export default {
moduleMetadata({
declarations: [
ProgressBarComponent,
PopoverComponent,
MetadataQualityItemComponent,
],
imports: [
CommonModule,
MatIconModule,
UtilI18nModule,
TranslateModule.forRoot(TRANSLATE_DEFAULT_CONFIG),
PopoverComponent,
],
}),
],
Expand Down
2 changes: 1 addition & 1 deletion libs/ui/widgets/src/lib/popover/popover.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ describe('PopoverComponent', () => {

beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [PopoverComponent],
imports: [PopoverComponent],
}).compileComponents()
})

Expand Down
5 changes: 4 additions & 1 deletion libs/ui/widgets/src/lib/popover/popover.component.stories.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
import { Meta, Story } from '@storybook/angular'
import { PopoverComponent } from './popover.component'
import { moduleMetadata } from '@storybook/angular'
import { CommonModule } from '@angular/common'

export default {
title: 'Widgets/Popover',
component: PopoverComponent,
decorators: [
moduleMetadata({
declarations: [PopoverComponent],
imports: [
CommonModule
],
}),
],
argTypes: {
Expand Down
3 changes: 3 additions & 0 deletions libs/ui/widgets/src/lib/popover/popover.component.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { CommonModule } from '@angular/common'
import {
Component,
AfterViewInit,
Expand All @@ -18,6 +19,8 @@ import tippy, { Instance } from 'tippy.js'
selector: 'gn-ui-popover',
templateUrl: './popover.component.html',
styleUrls: ['./popover.component.css'],
standalone: true,
imports: [CommonModule],
})
export class PopoverComponent implements AfterViewInit, OnChanges, OnDestroy {
@ViewChild('popoverContent', { static: false }) popoverContent: ElementRef
Expand Down
3 changes: 0 additions & 3 deletions libs/ui/widgets/src/lib/ui-widgets.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,11 @@ import { MatProgressSpinnerModule } from '@angular/material/progress-spinner'
import { MatIconModule } from '@angular/material/icon'
import { SpinningLoaderComponent } from './spinning-loader/spinning-loader.component'
import { CommonModule } from '@angular/common'
import { PopoverComponent } from './popover/popover.component'

@NgModule({
declarations: [
ColorScaleComponent,
ProgressBarComponent,
PopoverComponent,
StepBarComponent,
LoadingMaskComponent,
SpinningLoaderComponent,
Expand All @@ -35,7 +33,6 @@ import { PopoverComponent } from './popover/popover.component'
MatIconModule,
],
exports: [
PopoverComponent,
ProgressBarComponent,
StepBarComponent,
LoadingMaskComponent,
Expand Down

0 comments on commit 2cadb23

Please sign in to comment.