File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed
Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -2,8 +2,8 @@ import React from 'react'
22import { LeaderboardEntry } from 'src/components'
33
44interface 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
Original file line number Diff line number Diff line change @@ -7,8 +7,8 @@ import { useLeaderboardContext } from './LeaderboardContext'
77
88interface 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'
Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments