Link fullscreen page from tournament page
This commit is contained in:
parent
2d525eb576
commit
4df2537ad7
|
|
@ -41,6 +41,7 @@ function StatusBar(props) {
|
||||||
<ButtonGroup className='me-auto'>
|
<ButtonGroup className='me-auto'>
|
||||||
<EditButton tournamentId={props.tournament.id} isOwner={props.isOwner} isSignedIn={props.isSignedIn}/>
|
<EditButton tournamentId={props.tournament.id} isOwner={props.isOwner} isSignedIn={props.isSignedIn}/>
|
||||||
<StatisticsButton tournamentId={props.tournament.id}/>
|
<StatisticsButton tournamentId={props.tournament.id}/>
|
||||||
|
<FullscreenButton tournamentId={props.tournament.id}/>
|
||||||
</ButtonGroup>
|
</ButtonGroup>
|
||||||
</TournamentStatusBar>);
|
</TournamentStatusBar>);
|
||||||
}
|
}
|
||||||
|
|
@ -51,6 +52,12 @@ function StatisticsButton(props) {
|
||||||
</LinkButton>);
|
</LinkButton>);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function FullscreenButton(props) {
|
||||||
|
return (<TournamentStatusBarButton href={'/t/' + props.tournamentId + '/fullscreen'}>
|
||||||
|
Vollbild-Ansicht
|
||||||
|
</TournamentStatusBarButton>);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
function mapStateToTournamentPageProperties(state) {
|
function mapStateToTournamentPageProperties(state) {
|
||||||
const {isSignedIn, username} = state.userinfo;
|
const {isSignedIn, username} = state.userinfo;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue