File tree Expand file tree Collapse file tree 2 files changed +3
-19
lines changed
services/app/apps/codebattle/assets/js/widgets/pages/lobby Expand file tree Collapse file tree 2 files changed +3
-19
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ import i18n from '../../../i18n';
1616import { actions } from '../../slices' ;
1717
1818import CodebattleLeagueDescription from './CodebattleLeagueDescription' ;
19- import TournamentListItem , { activeIcon } from './TournamentListItem' ;
19+ import TournamentListItem from './TournamentListItem' ;
2020
2121const contestDatesText = 'Season: Oct 16 - Dec 21' ;
2222
@@ -183,7 +183,6 @@ const SeasonProfilePanel = ({
183183 isAdmin = { isAdmin }
184184 key = { tournament . id }
185185 tournament = { tournament }
186- icon = { activeIcon }
187186 />
188187 ) ) }
189188 </ div >
Original file line number Diff line number Diff line change @@ -122,30 +122,15 @@ const showStartsAt = state => [
122122 tournamentStates . upcoming ,
123123 ] . includes ( state ) ;
124124
125- export const activeIcon = (
126- < FontAwesomeIcon
127- style = { { width : '60px' , height : '60px' } }
128- icon = "laptop-code"
129- className = "text-warning"
130- />
131- ) ;
132- export const upcomingIcon = (
133- < FontAwesomeIcon
134- style = { { width : '60px' , height : '60px' } }
135- icon = "clock"
136- className = "text-gray"
137- />
138- ) ;
139-
140- const TournamentListItem = ( { tournament, icon, isAdmin = false } ) => (
125+ const TournamentListItem = ( { tournament, isAdmin = false } ) => (
141126 < div
142127 className = "border cb-border-color cb-rounded cb-subtle-background my-2 mr-2"
143128 style = { { width : '350px' } }
144129 >
145130 < div className = "d-flex flex-column p-3 align-content-center align-items-baseline" >
146131 < div className = "d-flex align-items-center" >
147132 < div className = "d-none d-lg-block d-md-block mr-2 mb-3" >
148- { icon || getIconForGrade ( tournament . grade ) }
133+ { getIconForGrade ( tournament . grade ) }
149134 </ div >
150135 < TournamentTitle tournament = { tournament } />
151136 </ div >
You can’t perform that action at this time.
0 commit comments