Skip to content

Commit

Permalink
Remove function call from module import
Browse files Browse the repository at this point in the history
  • Loading branch information
luizppa committed Oct 27, 2021
1 parent c18a84e commit bd08a9a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@

<div
[tooltip]="tooltipText"
class="github-board-cell"
[options]="tooltipOptions"
[tooltip]="tooltipText"
[display]="!disabled"
[class.pointer]="!disabled"
[style.backgroundColor]="color"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Component, Input, OnInit } from '@angular/core';
import { DEFAULT_CELL_SIZE, Months, Themes } from '../../../constants';
import { TooltipOptions } from 'ng2-tooltip-directive/lib/tooltip-options.interface';
import { DEFAULT_CELL_SIZE, Months, Themes, DefaultTooltipOptions } from '../../../constants';
import { ColorIntensity } from '../../../enums';
import { GithubBoardOptions } from '../../../types';

Expand All @@ -15,6 +16,8 @@ export class BoardCellComponent implements OnInit {
@Input() options: GithubBoardOptions = {};
@Input() disabled = false;

public tooltipOptions: TooltipOptions = DefaultTooltipOptions;

constructor() { }

ngOnInit(): void {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
import { BoardColumnComponent } from './components/github-board/board-column/board-column.component';
import { BoardLegendComponent } from './components/github-board/board-legend/board-legend.component';
import { TooltipModule } from 'ng2-tooltip-directive';
import { DefaultTooltipOptions } from './constants';

const TooltipImport = TooltipModule.forRoot(DefaultTooltipOptions);

@NgModule({
declarations: [
Expand All @@ -20,7 +17,7 @@ const TooltipImport = TooltipModule.forRoot(DefaultTooltipOptions);
imports: [
CommonModule,
NgbModule,
TooltipImport,
TooltipModule,
],
exports: [
GithubBoardComponent,
Expand Down

0 comments on commit bd08a9a

Please sign in to comment.