@@ -11,7 +11,7 @@ import * as selectors from "../../selectors";
1111import Loading from "@/components/Loading" ;
1212import { requestInviteUpdate } from "@/middlewares/GroupTournament" ;
1313
14- function GroupTournamentPage ( { tournamentId } ) {
14+ function GroupTournamentPage ( { tournamentId, tournamentName , tournamentDescription } ) {
1515 const dispatch = useDispatch ( ) ;
1616
1717 const [ showInviteWindow , setShowInviteWindow ] = useState ( false ) ;
@@ -57,64 +57,61 @@ function GroupTournamentPage({ tournamentId }) {
5757
5858 if ( invite . state === "creating" || invite . state === "pending" ) {
5959 return (
60- < >
61- < div className = "container-fluid h-100" >
62- < div className = "row justify-content-center h-100" >
63- < div className = "col-lg-5 col-md-5 col-sm-5 px-md-4 align-content-center" >
64- < div className = "card cb-card border cb-border-color cb-rounded shadow-sm p-5" >
65- < div className = "d-flex" >
66- < button
67- type = "button"
68- className = "btn btn-success text-white cb-rounded w-100"
69- onClick = { openExternalRegistrationWindow }
70- >
71- Registration
72- </ button >
73- < button
74- type = "button"
75- className = "btn btn-secondary cb-rounded w-100 ml-2"
76- onClick = { requestInviteUpdates }
77- >
78- Next Step
79- </ button >
80- </ div >
81- < small className = "text-center mt-3" >
82- For this stage you need registrated on a new platform
83- </ small >
60+ < div className = "container-fluid h-100" >
61+ < div className = "row justify-content-center h-100" >
62+ < div className = "col-lg-5 col-md-6 col-sm-8 px-md-4 align-content-center" >
63+ < div className = "cb-bg-panel shadow-sm cb-rounded p-5" >
64+ { tournamentName && < h5 className = "text-center mb-4" > { tournamentName } </ h5 > }
65+ < div className = "d-flex" >
66+ < button
67+ type = "button"
68+ className = "btn btn-success text-white cb-rounded w-100"
69+ onClick = { openExternalRegistrationWindow }
70+ >
71+ Registration
72+ </ button >
73+ < button
74+ type = "button"
75+ className = "btn btn-secondary cb-rounded w-100 ml-2"
76+ onClick = { requestInviteUpdates }
77+ >
78+ Next Step
79+ </ button >
8480 </ div >
81+ < small className = "text-center d-block mt-3" >
82+ For this stage you need to register on the external platform
83+ </ small >
8584 </ div >
8685 </ div >
8786 </ div >
88- </ >
87+ </ div >
8988 ) ;
9089 }
9190
9291 return (
93- < >
94- < div className = "container-fluid" >
95- < div className = "row" >
96- < div className = "col-12" >
97- < Header />
98- </ div >
92+ < div className = "container-fluid py-3" >
93+ < div className = "row" >
94+ < div className = "col-12" >
95+ < Header name = { tournamentName } status = { status } />
9996 </ div >
100- < div className = "row mt-1" >
101- < div className = "col-lg-3 col-md-3 col-12 " >
102- < EvolutionPanel
103- items = { solutionEvolution }
104- tournamentStatus = { status }
105- setRunId = { setRunId }
106- />
107- </ div >
108- < div className = "col-lg-6 col-md-6 col-12" >
109- < MainPanel status = { status } externalSetup = { externalSetup } />
110- </ div >
111- < div className = "col-lg-3 col-md-3 col-12" >
112- < EditorPanel text = { code } lang = { langSlug } / >
113- < LogPanel logs = { logs } className = "mt-1" />
114- </ div >
97+ </ div >
98+ < div className = "row mt-3 " >
99+ < div className = "col-lg-3 col-md-4 col-12 mb-3 mb-md-0" >
100+ < EvolutionPanel items = { solutionEvolution } tournamentStatus = { status } setRunId = { setRunId } />
101+ </ div >
102+ < div className = "col-lg-6 col-md-4 col-12 mb-3 mb-md-0" >
103+ < MainPanel
104+ status = { status }
105+ externalSetup = { externalSetup }
106+ description = { tournamentDescription }
107+ / >
108+ </ div >
109+ < div className = "col-lg-3 col-md-4 col-12" >
110+ < EditorPanel text = { code } lang = { langSlug } />
111+ < LogPanel logs = { logs } className = "mt-3" / >
115112 </ div >
116113 </ div >
117- </ >
114+ </ div >
118115 ) ;
119116}
120117
0 commit comments