File tree 2 files changed +15
-16
lines changed
2 files changed +15
-16
lines changed Original file line number Diff line number Diff line change @@ -36,15 +36,14 @@ export class Leaderboard extends React.Component<
36
36
isSearching : false ,
37
37
nextFetchIndex : 1 ,
38
38
offset : 0 ,
39
- pageSize : Math . floor ( ( window . innerHeight * 0.7 ) / 100 ) ,
39
+ pageSize : 10 ,
40
40
pattern : '' ,
41
41
} ;
42
42
}
43
43
44
44
public componentWillMount ( ) : void {
45
45
this . props . clearLeaderboard ( ) ;
46
- const noOfElems = Math . floor ( ( window . innerHeight * 0.7 ) / 100 ) ;
47
- this . props . getLeaderboard ( this . state . nextFetchIndex , noOfElems ) ;
46
+ this . props . getLeaderboard ( this . state . nextFetchIndex , 10 ) ;
48
47
this . props . getTimer ( ) ;
49
48
}
50
49
Original file line number Diff line number Diff line change @@ -49,10 +49,10 @@ export class RunOptions extends React.Component<
49
49
50
50
const maps = this . props . maps || hardCodedMap ;
51
51
52
- // const hardCodedAiIds: number[] = [1];
52
+ const hardCodedAiIds : number [ ] = [ 1 ] ;
53
53
54
- // @ts -ignore
55
- // const aiIds = hardCodedAiIds;
54
+ @ts - ignore
55
+ const aiIds = hardCodedAiIds ;
56
56
57
57
const matchOptions = [
58
58
{
@@ -63,16 +63,16 @@ export class RunOptions extends React.Component<
63
63
} ,
64
64
] ;
65
65
66
- // if (aiIds) {
67
- // aiIds.map((aiId) => {
68
- // matchOptions.push({
69
- // aiId,
70
- // icon: <FontAwesomeIcon icon={faRobot} />,
71
- // name: `AI ${aiId} Match`,
72
- // type: SubmissionActions.Type.AI_MATCH,
73
- // });
74
- // });
75
- // }
66
+ if ( aiIds ) {
67
+ aiIds . map ( ( aiId ) => {
68
+ matchOptions . push ( {
69
+ aiId,
70
+ icon : < FontAwesomeIcon icon = { faRobot } /> ,
71
+ name : `AI ${ aiId } Match` ,
72
+ type : SubmissionActions . Type . AI_MATCH ,
73
+ } ) ;
74
+ } ) ;
75
+ }
76
76
77
77
const mapOptions = (
78
78
< div className = { classnames ( styles [ 'dropdown-submenu' ] ) } >
You can’t perform that action at this time.
0 commit comments