@@ -179,7 +179,7 @@ function TournamentHeader({
179179 'btn-secondary' : ! hasCustomEventStyle ,
180180 'cb-custom-event-btn-secondary' : hasCustomEventStyle ,
181181 } ) ;
182- const backBtnClassName = cn ( 'btn rounded-lg ml-lg-2 ml-md-2 mr-2' , {
182+ const backBtnClassName = cn ( 'btn rounded-lg ml-lg-2 mr-2' , {
183183 'btn-primary' : ! hasCustomEventStyle ,
184184 'cb-custom-event-btn-primary' : hasCustomEventStyle ,
185185 } ) ;
@@ -203,7 +203,7 @@ function TournamentHeader({
203203 return (
204204 < >
205205 < div className = "col bg-white shadow-sm rounded-lg p-2" >
206- < div className = "d-flex flex-column flex-lg-row flex-md-row justify-content-between" >
206+ < div className = "d-flex flex-column flex-lg-row justify-content-between" >
207207 < div className = "d-flex align-items-center pb-2" >
208208 < h2
209209 title = { name }
@@ -247,30 +247,27 @@ function TournamentHeader({
247247 </ div >
248248 < div className = "d-flex" >
249249 { ! streamMode && (
250- ! isOver ? (
251- < div className = "d-flex justify-items-center pb-2" >
252- { type !== 'team' && (
253- < div className = "mr-2 mr-lg-0" >
254- < JoinButton
255- isShow = { state !== TournamentStates . active || type === 'arena' }
256- isShowLeave = { ! ( type === 'arena' && state === TournamentStates . active ) }
257- isParticipant = { ! ! players [ currentUserId ] }
258- disabled = { ! isOnline || ! isLive }
259- />
260- </ div >
261- ) }
262- </ div >
263- ) : (
264- < div className = "d-flex justify-items-center pb-2" >
250+ < div className = "d-flex justify-items-center pb-2" >
251+ { ! players [ currentUserId ] && (
265252 < a
266253 className = { backBtnClassName }
267254 href = "/tournaments"
268255 >
269256 < FontAwesomeIcon className = "mr-2" icon = "undo" />
270257 { i18next . t ( 'Back to tournaments' ) }
271258 </ a >
272- </ div >
273- )
259+ ) }
260+ { type !== 'team' && ! isOver && (
261+ < div className = "d-flex mr-2 mr-lg-0" >
262+ < JoinButton
263+ isShow = { state !== TournamentStates . active || type === 'arena' }
264+ isShowLeave = { type !== 'arena' || state !== TournamentStates . active }
265+ isParticipant = { ! ! players [ currentUserId ] }
266+ disabled = { ! isOnline || ! isLive }
267+ />
268+ </ div >
269+ ) }
270+ </ div >
274271 ) }
275272 < div className = "d-flex justify-items-center pb-2" >
276273 { canModerate && (
0 commit comments