Pass plain components, rather than functions returning them
This commit is contained in:
parent
788be67c75
commit
df6d5cc2b4
5 changed files with 7 additions and 7 deletions
|
@ -490,7 +490,7 @@ module.exports = React.createClass({
|
|||
{ _t(
|
||||
"Press <StartChatButton> to start a chat with someone",
|
||||
{},
|
||||
{ 'StartChatButton': () => <StartChatButton size="16" callout={true} /> },
|
||||
{ 'StartChatButton': <StartChatButton size="16" callout={true} /> },
|
||||
) }
|
||||
</div>;
|
||||
case 'im.vector.fake.recent':
|
||||
|
@ -500,8 +500,8 @@ module.exports = React.createClass({
|
|||
" <RoomDirectoryButton> to browse the directory",
|
||||
{},
|
||||
{
|
||||
'CreateRoomButton': () => <CreateRoomButton size="16" callout={true} />,
|
||||
'RoomDirectoryButton': () => <RoomDirectoryButton size="16" callout={true} />,
|
||||
'CreateRoomButton': <CreateRoomButton size="16" callout={true} />,
|
||||
'RoomDirectoryButton': <RoomDirectoryButton size="16" callout={true} />,
|
||||
},
|
||||
) }
|
||||
</div>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue