mirror of
https://github.com/mue/mue.git
synced 2026-07-13 12:07:45 +02:00
style: achievement toast style
Co-authored-by: Isaac <contact@eartharoid.me>
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { newAchievements, getLocalisedAchievementData } from './achievements';
|
||||
import { toast } from 'react-toastify';
|
||||
import variables from 'config/variables';
|
||||
|
||||
export default class Stats {
|
||||
static async achievementTrigger(stats) {
|
||||
@@ -7,7 +8,13 @@ export default class Stats {
|
||||
newAchievement.forEach((achievement) => {
|
||||
if (achievement) {
|
||||
const { name } = getLocalisedAchievementData(achievement.id);
|
||||
toast.success(`Achievement Unlocked: ${name}`);
|
||||
//toast.success(`{varia}: ${name}`);
|
||||
toast.success(
|
||||
`🏆 ${variables.getMessage('modals.main.settings.sections.stats.achievement_unlocked', { name: name })}`,
|
||||
{
|
||||
icon: false,
|
||||
},
|
||||
);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user