Move all the RED_EXCLAMATION badges to a single definition

This commit is contained in:
Travis Ralston 2021-04-21 16:43:25 -06:00
parent 9227618b42
commit 4be9c51dad
5 changed files with 7 additions and 11 deletions

View file

@ -18,6 +18,8 @@ import { NotificationColor } from "./NotificationColor";
import { NotificationState } from "./NotificationState";
export class StaticNotificationState extends NotificationState {
public static readonly RED_EXCLAMATION = StaticNotificationState.forSymbol("!", NotificationColor.Red);
constructor(symbol: string, count: number, color: NotificationColor) {
super();
this._symbol = symbol;