File tree Expand file tree Collapse file tree 3 files changed +15
-11
lines changed
services/app/apps/codebattle/assets/js/widgets/pages Expand file tree Collapse file tree 3 files changed +15
-11
lines changed Original file line number Diff line number Diff line change @@ -109,13 +109,18 @@ const TournamentRankingTable = () => {
109109 </ tbody >
110110 </ table >
111111 </ div >
112- { roundTaskIds ?. length > 0 && (
113- < div className = "d-flex justify-content-center align-items-center mt-2 mb-2" >
114- < span className = "font-weight-bold" >
115- { i18next . t ( 'Task' ) } : { currentRoundPosition + 1 } / { roundTaskIds . length }
116- </ span >
117- </ div >
118- ) }
112+ { roundTaskIds ?. length > 0 && (
113+ < div className = "d-flex justify-content-center align-items-center mt-2 mb-2" >
114+ < span className = "font-weight-bold" >
115+ { i18next . t ( 'Task' ) }
116+ :
117+ { currentRoundPosition + 1 }
118+ { ' ' }
119+ /
120+ { roundTaskIds . length }
121+ </ span >
122+ </ div >
123+ ) }
119124 </ div >
120125 ) ;
121126} ;
Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ import { getOpponentId } from '../../utils/matches';
1717import StageCard from './StageCard' ;
1818import StageTitle from './StageTitle' ;
1919import StatisticsCard , { ArenaStatisticsCard } from './StatisticsCard' ;
20- import TournamentPlace from './TournamentPlace' ;
2120import UsersMatchList from './UsersMatchList' ;
2221
2322const navMatchesTabsClassName = cn (
Original file line number Diff line number Diff line change @@ -4,12 +4,12 @@ import cn from 'classnames';
44import { useSelector } from 'react-redux' ;
55
66import CustomEventStylesContext from '@/components/CustomEventStylesContext' ;
7+ import { userRankingSelector } from '@/selectors' ;
78import useMatchesStatistics from '@/utils/useMatchesStatistics' ;
89
910import i18next from '../../../i18n' ;
1011
1112import TournamentPlace from './TournamentPlace' ;
12- import { userRankingSelector } from '@/selectors' ;
1313
1414export function ArenaStatisticsCard ( {
1515 playerId,
@@ -85,12 +85,12 @@ export function ArenaStatisticsCard({
8585}
8686
8787function StatisticsCard ( {
88- playerId, matchList = [ ]
88+ playerId, matchList = [ ] ,
8989} ) {
9090 const [ playerStats ] = useMatchesStatistics ( playerId , matchList ) ;
9191 const playerRanking = useSelector ( userRankingSelector ( playerId ) ) ;
9292
93- console . log ( playerRanking )
93+ console . log ( playerRanking ) ;
9494 const cardClassName = cn (
9595 'd-flex flex-column justify-content-center p-2 w-100' ,
9696 'align-items-center align-items-md-baseline align-items-lg-baseline align-items-xl-baseline' ,
You can’t perform that action at this time.
0 commit comments