Skip to content

Commit

Permalink
Use FontAwesome Pro icons in Glam Onboarding
Browse files Browse the repository at this point in the history
PER-9893
  • Loading branch information
meisekimiu committed Dec 6, 2024
1 parent 073663e commit fe795e9
Showing 1 changed file with 15 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
import { Component, Input } from '@angular/core';
import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
import { faHeart, faUser } from '@fortawesome/free-regular-svg-icons';
import { faScroll } from '@fortawesome/free-solid-svg-icons';
import {
faBuildingColumns,
faFamily,
faHeart,
faPeopleGroup,
faScrollOld,
faUser,
} from '@fortawesome/pro-regular-svg-icons';
import { OnboardingTypes } from '@root/app/onboarding/shared/onboarding-screen';

@Component({
Expand All @@ -12,10 +18,14 @@ import { OnboardingTypes } from '@root/app/onboarding/shared/onboarding-screen';
})
export class ArchiveTypeIconComponent {
@Input() public type: OnboardingTypes = OnboardingTypes.myself;
public readonly icons = {
public readonly icons: Record<OnboardingTypes, typeof faHeart> = {
'type:myself': faHeart,
'type:individual': faUser,
'type:family': faHeart,
'type:famhist': faScroll,
'type:family': faFamily,
'type:famhist': faScrollOld,
'type:community': faPeopleGroup,
'type:org': faBuildingColumns,
'type:other': faHeart,
'type:unsure': faHeart,
};
}

0 comments on commit fe795e9

Please sign in to comment.