Browse Source
Task/remove unused OnDestroy hook in OSS friends page component (#6374)
* Remove unused OnDestroy hook
pull/6378/head
Thomas Kaul
7 days ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
2 additions and
10 deletions
-
apps/client/src/app/pages/about/oss-friends/oss-friends-page.component.ts
|
|
|
@ -1,10 +1,9 @@ |
|
|
|
import { Component, OnDestroy } from '@angular/core'; |
|
|
|
import { Component } from '@angular/core'; |
|
|
|
import { MatButtonModule } from '@angular/material/button'; |
|
|
|
import { MatCardModule } from '@angular/material/card'; |
|
|
|
import { IonIcon } from '@ionic/angular/standalone'; |
|
|
|
import { addIcons } from 'ionicons'; |
|
|
|
import { arrowForwardOutline } from 'ionicons/icons'; |
|
|
|
import { Subject } from 'rxjs'; |
|
|
|
|
|
|
|
const ossFriends = require('../../../../assets/oss-friends.json'); |
|
|
|
|
|
|
|
@ -14,17 +13,10 @@ const ossFriends = require('../../../../assets/oss-friends.json'); |
|
|
|
styleUrls: ['./oss-friends-page.scss'], |
|
|
|
templateUrl: './oss-friends-page.html' |
|
|
|
}) |
|
|
|
export class GfOpenSourceSoftwareFriendsPageComponent implements OnDestroy { |
|
|
|
export class GfOpenSourceSoftwareFriendsPageComponent { |
|
|
|
public ossFriends = ossFriends.data; |
|
|
|
|
|
|
|
private unsubscribeSubject = new Subject<void>(); |
|
|
|
|
|
|
|
public constructor() { |
|
|
|
addIcons({ arrowForwardOutline }); |
|
|
|
} |
|
|
|
|
|
|
|
public ngOnDestroy() { |
|
|
|
this.unsubscribeSubject.next(); |
|
|
|
this.unsubscribeSubject.complete(); |
|
|
|
} |
|
|
|
} |
|
|
|
|