feat: use shadow dom on theme editor for achievement notifications

This commit is contained in:
Zamitto
2025-05-18 21:28:45 -03:00
parent 650b02e673
commit 73de69b5a6
3 changed files with 43 additions and 16 deletions

View File

@@ -179,7 +179,8 @@ export const formatDate = (
export const generateAchievementCustomNotificationTest = (
t: any,
language?: string
language?: string,
options: { isHidden?: boolean; isRare?: boolean; isPlatinum?: boolean } = {}
): AchievementNotificationInfo => {
return {
title: t("test_achievement_notification_title", {
@@ -192,8 +193,8 @@ export const generateAchievementCustomNotificationTest = (
}),
iconUrl: "https://cdn.losbroxas.org/favicon.svg",
points: 2440,
isHidden: false,
isRare: false,
isPlatinum: false,
isHidden: options.isHidden ?? false,
isRare: options.isRare ?? false,
isPlatinum: options.isPlatinum ?? false,
};
};