Skip to content

Commit 4b1858d

Browse files
committed
achievement fixes
1 parent 12c64cf commit 4b1858d

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/config/achievements.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,9 @@ export const ACHIEVEMENTS = [
111111
category: 'Content',
112112
},
113113
{
114-
id: 'lord',
115-
title: 'Lord',
116-
description: 'Read 40 different blog posts. MiLord!',
114+
id: 'milord',
115+
title: 'Mi Lord',
116+
description: 'Read 30 different blog posts. Mi Lord!',
117117
icon: <CastleTurretIcon size={32} weight="duotone" />,
118118
category: 'Content',
119119
},

src/context/AchievementContext.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import React, { createContext, useContext, useEffect, useState } from 'react';
22
import usePersistentState from '../hooks/usePersistentState';
33
import { useToast } from '../hooks/useToast';
44
import { ACHIEVEMENTS } from '../config/achievements';
5+
import {TrophyIcon} from "@phosphor-icons/react";
56

67
const AchievementContext = createContext();
78

@@ -39,6 +40,7 @@ export const AchievementProvider = ({ children }) => {
3940
title: 'Achievement Unlocked!',
4041
message: achievement.title,
4142
duration: 4000,
43+
icon: <TrophyIcon weight="duotone"/>
4244
// You might want to add a specific type or icon here later for styling
4345
});
4446
};
@@ -56,7 +58,7 @@ export const AchievementProvider = ({ children }) => {
5658
if (count >= 5) unlockAchievement('avid_reader');
5759
if (count >= 10) unlockAchievement('bookworm');
5860
if (count >= 20) unlockAchievement('scholar');
59-
if (count >= 40) unlockAchievement('lord');
61+
if (count >= 30) unlockAchievement('milord');
6062

6163
return newReadPosts;
6264
});

0 commit comments

Comments
 (0)