Pass plain components, rather than functions returning them

This commit is contained in:
Stefan Parviainen 2017-11-14 20:09:52 +01:00
parent 788be67c75
commit df6d5cc2b4
5 changed files with 7 additions and 7 deletions

View file

@ -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>;