Link fullscreen page from tournament page

This commit is contained in:
Felix Hamme 2019-10-03 11:47:34 +02:00 committed by Felix Hamme
parent 20d7a76c89
commit 5141c19cb7
1 changed files with 7 additions and 0 deletions

View File

@ -45,6 +45,7 @@ function StatusBar(props) {
{props.tournament.name} {props.tournament.name}
<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}/>
</Navbar.Brand> </Navbar.Brand>
</TournamentStatusBar>); </TournamentStatusBar>);
} }
@ -55,6 +56,12 @@ function StatisticsButton(props) {
</TournamentStatusBarButton>); </TournamentStatusBarButton>);
} }
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;