Skip to content

Commit 4449527

Browse files
fix: rename leaderboard 'train' -> 'puzzles'
1 parent f78b172 commit 4449527

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

src/components/Leaderboard/LeaderboardColumn.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import React from 'react'
22
import { LeaderboardEntry } from 'src/components'
33

44
interface Props {
5-
id: 'regular' | 'train' | 'turing' | 'hand' | 'brain'
6-
name: 'Regular' | 'Train' | 'Bot/Not' | 'Hand' | 'Brain'
5+
id: 'regular' | 'puzzles' | 'turing' | 'hand' | 'brain'
6+
name: 'Regular' | 'Puzzles' | 'Bot/Not' | 'Hand' | 'Brain'
77
icon: React.JSX.Element
88
ranking: {
99
display_name: string

src/components/Leaderboard/LeaderboardEntry.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import { useLeaderboardContext } from './LeaderboardContext'
77

88
interface Props {
99
index: number
10-
typeId: 'regular' | 'train' | 'turing' | 'hand' | 'brain'
11-
type: 'Regular' | 'Train' | 'Bot/Not' | 'Hand' | 'Brain'
10+
typeId: 'regular' | 'puzzles' | 'turing' | 'hand' | 'brain'
11+
type: 'Regular' | 'Puzzles' | 'Bot/Not' | 'Hand' | 'Brain'
1212
display_name: string
1313
elo: number
1414
}
@@ -63,7 +63,7 @@ export const LeaderboardEntry = ({
6363
gamesKey = 'regularGames'
6464
gamesWonKey = 'regularWins'
6565
break
66-
case 'train':
66+
case 'puzzles':
6767
ratingKey = 'trainRating'
6868
highestRatingKey = 'trainMax'
6969
gamesKey = 'trainGames'

src/pages/leaderboard.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ const Leaderboard: React.FC = () => {
2020
{
2121
icon: React.JSX.Element
2222
ranking: { display_name: string; elo: number }[]
23-
name: 'Regular' | 'Train' | 'Bot/Not' | 'Hand' | 'Brain'
24-
id: 'regular' | 'train' | 'turing' | 'hand' | 'brain'
23+
name: 'Regular' | 'Puzzles' | 'Bot/Not' | 'Hand' | 'Brain'
24+
id: 'regular' | 'puzzles' | 'turing' | 'hand' | 'brain'
2525
}[]
2626
>()
2727

@@ -55,9 +55,9 @@ const Leaderboard: React.FC = () => {
5555
ranking: lb.play_leaders,
5656
},
5757
{
58-
id: 'train',
58+
id: 'puzzles',
5959
icon: <TrainIcon />,
60-
name: 'Train',
60+
name: 'Puzzles',
6161
ranking: lb.puzzles_leaders,
6262
},
6363
{

0 commit comments

Comments
 (0)