✨ Add ability to delete all leaderboard
This commit is contained in:
1 parent
9426b8499c
commit
ffa6468b70
5 files changed
+161
-22
No files matched your search
@@ -44,3 +44,10 @@ export const saveToLocalStorage = async (time: string, difficulty: Difficulty, g
|
||||
|
||||
await store.setItem(`${difficulty}:${gridSize}`, leaderboard);
|
||||
};
|
||||
|
||||
export const getDifficultyLabel = (difficulty: Difficulty): string => {
|
||||
if (difficulty == 'beginner') return 'Débutant';
|
||||
if (difficulty == 'intermediate') return 'Intermédiaire';
|
||||
if (difficulty == 'expert') return 'Expert';
|
||||
return difficulty;
|
||||
};
|
||||
Reference in new issue
Block a user