Skip to content

Commit 4e00754

Browse files
committed
Fix tournament icon
1 parent 72fc64d commit 4e00754

File tree

2 files changed

+3
-19
lines changed

2 files changed

+3
-19
lines changed

services/app/apps/codebattle/assets/js/widgets/pages/lobby/SeasonProfilePanel.jsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import i18n from '../../../i18n';
1616
import { actions } from '../../slices';
1717

1818
import CodebattleLeagueDescription from './CodebattleLeagueDescription';
19-
import TournamentListItem, { activeIcon } from './TournamentListItem';
19+
import TournamentListItem from './TournamentListItem';
2020

2121
const 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>

services/app/apps/codebattle/assets/js/widgets/pages/lobby/TournamentListItem.jsx

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff 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>

0 commit comments

Comments
 (0)