Skip to content

Commit b7ee560

Browse files
committed
fix: Update from deprecated font-awesome usage
1 parent c4e6fa7 commit b7ee560

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

frontend/src/app/app.module.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ import { HttpClientModule } from "@angular/common/http";
44
import { BrowserAnimationsModule } from "@angular/platform-browser/animations";
55
import { FormsModule, ReactiveFormsModule } from "@angular/forms";
66

7-
import { FontAwesomeModule } from "@fortawesome/angular-fontawesome";
8-
import { library } from "@fortawesome/fontawesome-svg-core";
7+
import { FontAwesomeModule, FaIconLibrary } from "@fortawesome/angular-fontawesome";
98
import {
109
faCogs,
1110
faHdd,
@@ -94,8 +93,8 @@ import { FormGpusComponent } from "./resource-form/form-gpus/form-gpus.component
9493
entryComponents: [SnackBarComponent, ConfirmDialogComponent]
9594
})
9695
export class AppModule {
97-
constructor() {
98-
library.add(
96+
constructor(library: FaIconLibrary) {
97+
library.addIcons(
9998
faCogs,
10099
faHdd,
101100
faBook,

0 commit comments

Comments
 (0)