1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-10 21:50:15 +00:00

Extend toast component to receive an optional Icon

This commit is contained in:
Daniel James Smith
2025-03-20 12:34:48 +01:00
parent 773af3ced4
commit fe0eb86405
5 changed files with 28 additions and 3 deletions

View File

@@ -6,6 +6,7 @@ import { PlatformUtilsService } from "@bitwarden/common/platform/abstractions/pl
import { AchievementService } from "@bitwarden/common/tools/achievements/achievement.service.abstraction";
import { ToastService } from "@bitwarden/components";
import { AchievementIcon } from "./achievement-icon";
import { AchievementNotifierService as AchievementNotifierServiceAbstraction } from "./achievement-notifier.abstraction";
export class AchievementNotifierService implements AchievementNotifierServiceAbstraction {
@@ -48,6 +49,7 @@ export class AchievementNotifierService implements AchievementNotifierServiceAbs
variant: "info",
title: achievement.name,
message: achievement.description,
icon: AchievementIcon,
});
});