Pass SimpleRoomHeader title in as a named property
... rather than a child
This commit is contained in:
parent
0d261c37c2
commit
1f2ba87ff5
3 changed files with 11 additions and 16 deletions
|
@ -255,9 +255,7 @@ module.exports = React.createClass({
|
|||
|
||||
return (
|
||||
<div className="mx_CreateRoom">
|
||||
<SimpleRoomHeader>
|
||||
Create room
|
||||
</SimpleRoomHeader>
|
||||
<SimpleRoomHeader title="CreateRoom" />
|
||||
<div className="mx_CreateRoom_body">
|
||||
<input type="text" ref="room_name" value={this.state.room_name} onChange={this.onNameChange} placeholder="Name"/> <br />
|
||||
<textarea className="mx_CreateRoom_description" ref="topic" value={this.state.topic} onChange={this.onTopicChange} placeholder="Topic"/> <br />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue