From 7a761dbf6bdfef2067956e8968ef660e214b2caf Mon Sep 17 00:00:00 2001
From: Aidan Gauland
Date: Sat, 23 Dec 2017 16:15:28 +1300
Subject: [PATCH] Use DialogButtons in ChatCreateOrReuseDialog
Use DialogButtons to eliminate duplicate button code.
---
src/components/views/dialogs/ChatCreateOrReuseDialog.js | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/src/components/views/dialogs/ChatCreateOrReuseDialog.js b/src/components/views/dialogs/ChatCreateOrReuseDialog.js
index e0578f3b53..22e747a989 100644
--- a/src/components/views/dialogs/ChatCreateOrReuseDialog.js
+++ b/src/components/views/dialogs/ChatCreateOrReuseDialog.js
@@ -137,6 +137,7 @@ export default class ChatCreateOrReuseDialog extends React.Component {
} else {
// Show the avatar, name and a button to confirm that a new chat is requested
const BaseAvatar = sdk.getComponent('avatars.BaseAvatar');
+ const DialogButtons = sdk.getComponent('views.elements.DialogButtons');
const Spinner = sdk.getComponent('elements.Spinner');
title = _t('Start chatting');
@@ -166,11 +167,8 @@ export default class ChatCreateOrReuseDialog extends React.Component {
{ profile }
-
-
-
+
;
}