Skip to content

Commit

Permalink
Refactored size determination in IrisLogoComponent to switch-case.
Browse files Browse the repository at this point in the history
  • Loading branch information
bassner committed Dec 17, 2024
1 parent 61ace50 commit 9ad7bb5
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions src/main/webapp/app/iris/iris-logo/iris-logo.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,17 @@ export class IrisLogoComponent {
});

classList = computed(() => {
if (this.size() === IrisLogoSize.SMALL) {
return 'small';
} else if (this.size() === IrisLogoSize.MEDIUM) {
return 'medium';
} else if (this.size() === IrisLogoSize.BIG) {
return 'big img-fluid';
} else if (this.size() === IrisLogoSize.FLUID) {
return 'fluid';
switch (this.size()) {
case IrisLogoSize.SMALL:
return 'small';
case IrisLogoSize.MEDIUM:
return 'medium';
case IrisLogoSize.BIG:
return 'big img-fluid';
case IrisLogoSize.FLUID:
return 'fluid';
default:
return '';
}
return '';
});
}

0 comments on commit 9ad7bb5

Please sign in to comment.