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:
@@ -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,
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user