Skip to content

Commit

Permalink
Give better default behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippMDoerner committed Dec 18, 2024
1 parent 04d2033 commit 6e2f93f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/design/atoms/_models/icon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export const ALL_SOLID_ICONS = [
'arrow-right',
'arrow-up-long',
'bars',
'bolt',
'book-open',
'book',
'calendar-alt',
Expand Down Expand Up @@ -59,6 +60,7 @@ export const ALL_SOLID_ICONS = [
'hand-sparkles',
'hat-wizard',
'diagram-project',
'hand-fist',
'hotel',
'hourglass-half',
'info-circle',
Expand Down Expand Up @@ -132,6 +134,6 @@ export function toIconKind(icon: Icon): IconKind | undefined {
} else {
const e = new Error('Invalid icon: ' + icon);
console.error(e);
return undefined;
return 'fa-solid';
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
}"
>
<div class="sidebar-border">
<span class="mx-1"> {{ label() }} </span>
<span class="mx-2"> {{ label() }} </span>
@let entryIcon = icon();
@if (entryIcon) {
<app-icon [icon]="entryIcon"></app-icon>
Expand Down

0 comments on commit 6e2f93f

Please sign in to comment.