Browse Source

Removed the empty constructors

Reverted implements OnInit on required classes

1. Removed from all classes public ngOnInit() {}
2. Removed ngOnInit() method from all files
3. Removed the OnInit interface from the classes
4. Removed the OnInit import from the top of all files
pull/3961/head
waxif 10 months ago
parent
commit
94756b6210
  1. 2
      apps/client/src/app/components/dialog-footer/dialog-footer.component.ts
  2. 2
      apps/client/src/app/components/dialog-header/dialog-header.component.ts
  3. 2
      apps/client/src/app/components/fear-and-greed-index/fear-and-greed-index.component.ts
  4. 2
      apps/client/src/app/components/portfolio-summary/portfolio-summary.component.ts
  5. 2
      apps/client/src/app/components/toggle/toggle.component.ts
  6. 2
      apps/client/src/app/pages/faq/self-hosting/self-hosting-page.component.ts
  7. 2
      apps/client/src/app/pages/i18n/i18n-page.component.ts
  8. 2
      apps/client/src/app/pages/markets/markets-page.component.ts

2
apps/client/src/app/components/dialog-footer/dialog-footer.component.ts

@ -18,7 +18,7 @@ export class DialogFooterComponent {
@Output() closeButtonClicked = new EventEmitter<void>();
public constructor() {}
public onClickCloseButton() {
this.closeButtonClicked.emit();

2
apps/client/src/app/components/dialog-header/dialog-header.component.ts

@ -20,7 +20,7 @@ export class DialogHeaderComponent {
@Output() closeButtonClicked = new EventEmitter<void>();
public constructor() {}
public onClickCloseButton() {
this.closeButtonClicked.emit();

2
apps/client/src/app/components/fear-and-greed-index/fear-and-greed-index.component.ts

@ -20,7 +20,7 @@ export class FearAndGreedIndexComponent implements OnChanges{
public fearAndGreedIndexEmoji: string;
public fearAndGreedIndexText: string;
public constructor() {}
public ngOnChanges() {
const { emoji, key } = resolveFearAndGreedIndex(this.fearAndGreedIndex);

2
apps/client/src/app/components/portfolio-summary/portfolio-summary.component.ts

@ -34,7 +34,7 @@ export class PortfolioSummaryComponent implements OnChanges{
);
public timeInMarket: string;
public constructor() {}
public ngOnChanges() {
if (this.summary) {

2
apps/client/src/app/components/toggle/toggle.component.ts

@ -33,7 +33,7 @@ export class ToggleComponent implements OnChanges{
public optionFormControl = new FormControl<string>(undefined);
public constructor() {}
public ngOnChanges() {
this.optionFormControl.setValue(this.defaultValue);

2
apps/client/src/app/pages/faq/self-hosting/self-hosting-page.component.ts

@ -10,7 +10,7 @@ import { Subject } from 'rxjs';
export class SelfHostingPageComponent implements OnDestroy {
private unsubscribeSubject = new Subject<void>();
public constructor() {}
public ngOnDestroy() {
this.unsubscribeSubject.next();

2
apps/client/src/app/pages/i18n/i18n-page.component.ts

@ -11,7 +11,7 @@ import { Subject } from 'rxjs';
export class GfI18nPageComponent {
private unsubscribeSubject = new Subject<void>();
public constructor() {}
public ngOnDestroy() {
this.unsubscribeSubject.next();

2
apps/client/src/app/pages/markets/markets-page.component.ts

@ -10,7 +10,7 @@ import { Subject } from 'rxjs';
export class MarketsPageComponent implements OnDestroy{
private unsubscribeSubject = new Subject<void>();
public constructor() {}
public ngOnDestroy() {
this.unsubscribeSubject.next();

Loading…
Cancel
Save