From b0028066395547f9912c7438bbf2e3e70a59f2e2 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Tue, 28 Jan 2020 17:42:39 +0000 Subject: [PATCH] Use DialogButtons because reusability :(( --- .../views/verification/VerificationShowSas.js | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/components/views/verification/VerificationShowSas.js b/src/components/views/verification/VerificationShowSas.js index 08d0dd422d..4a1628e9e6 100644 --- a/src/components/views/verification/VerificationShowSas.js +++ b/src/components/views/verification/VerificationShowSas.js @@ -19,6 +19,7 @@ import PropTypes from 'prop-types'; import { _t, _td } from '../../../languageHandler'; import {PendingActionSpinner} from "../right_panel/EncryptionInfo"; import AccessibleButton from "../elements/AccessibleButton"; +import DialogButtons from "../elements/DialogButtons"; function capFirst(s) { return s.charAt(0).toUpperCase() + s.slice(1); @@ -90,14 +91,15 @@ export default class VerificationShowSas extends React.Component { const text = _t("Waiting for %(displayName)s to verify…", {displayName}); confirm = ; } else { - confirm = - - {_t("They match")} - - - {_t("They don't match")} - - ; + // FIXME: stop using DialogButtons here once it this component is only used in the right panel verification + confirm = ; } return