Skip to content
Snippets Groups Projects

Notifications + small updates

Merged H9031 requested to merge notification-view into development
2 files
+ 9
6
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -98,7 +98,7 @@ export default class GameView extends React.Component {
@@ -98,7 +98,7 @@ export default class GameView extends React.Component {
getSocketSignal = data => {
getSocketSignal = data => {
this.setState(
this.setState(
{
{
socketSignal: data // TODO: change to data
socketSignal: data
},
},
() => {
() => {
this.setState({
this.setState({
@@ -197,7 +197,11 @@ export default class GameView extends React.Component {
@@ -197,7 +197,11 @@ export default class GameView extends React.Component {
zoom={this.state.zoom}
zoom={this.state.zoom}
mapUrl={this.state.mapUrl}
mapUrl={this.state.mapUrl}
currentGameId={this.state.gameInfo.id}
currentGameId={this.state.gameInfo.id}
socketSignal={this.state.socketSignal}
socketSignal={
 
this.state.socketSignal === null
 
? null
 
: this.state.socketSignal.type
 
}
role={this.state.role}
role={this.state.role}
>
>
<NotificationPopup socketSignal={this.state.socketSignal} />
<NotificationPopup socketSignal={this.state.socketSignal} />
Loading