hide input when there's no room selected

master
f0x 5 years ago
parent e270c0febe
commit 8e3f2a10f0

@ -90,7 +90,8 @@ let App = create({
<div className="main"> <div className="main">
<Info room={this.state.rooms[this.state.roomId]} /> <Info room={this.state.rooms[this.state.roomId]} />
<Chat client={this.state.client} roomId={this.state.roomId}/> <Chat client={this.state.client} roomId={this.state.roomId}/>
<Input client={this.state.client} roomId={this.state.roomId}/> {this.state.roomId !== undefined
&& <Input client={this.state.client} roomId={this.state.roomId}/>}
</div> </div>
</> </>
) )

Loading…
Cancel
Save