Link fullscreen page from tournament page

This commit is contained in:
Felix Hamme 2019-10-03 11:47:34 +02:00 committed by Thor77
parent 2d525eb576
commit 4df2537ad7
No known key found for this signature in database
GPG Key ID: 5051E71B46AA669A
1 changed files with 7 additions and 0 deletions

View File

@ -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;