From 29ff5f3f9ce4b932cbb1adb5db769d61bdd395a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0imon=20Brandner?= Date: Mon, 13 Sep 2021 18:12:47 +0200 Subject: [PATCH] Add IDialogAesthetics MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Šimon Brandner --- .../views/dialogs/InteractiveAuthDialog.tsx | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/src/components/views/dialogs/InteractiveAuthDialog.tsx b/src/components/views/dialogs/InteractiveAuthDialog.tsx index c0d108bf06..2ea97f91c3 100644 --- a/src/components/views/dialogs/InteractiveAuthDialog.tsx +++ b/src/components/views/dialogs/InteractiveAuthDialog.tsx @@ -29,6 +29,17 @@ import BaseDialog from "./BaseDialog"; import { IAuthData } from "matrix-js-sdk/src/interactive-auth"; import { IDialogProps } from "./IDialogProps"; +interface IDialogAesthetics { + [x: string]: { + [x: number]: { + title: string; + body: string; + continueText: string; + continueKind: string; + }; + }; +} + interface IProps extends IDialogProps { // matrix client to use for UI auth requests matrixClient: MatrixClient; @@ -62,7 +73,7 @@ interface IProps extends IDialogProps { // } // // Default is defined in _getDefaultDialogAesthetics() - aestheticsForStagePhases?: {}; + aestheticsForStagePhases?: IDialogAesthetics; } interface IState { @@ -87,7 +98,7 @@ export default class InteractiveAuthDialog extends React.Component