Use IDialogProps

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
Šimon Brandner 2021-09-10 19:01:05 +02:00
parent ee90ff0b98
commit 6e11f2478c
No known key found for this signature in database
GPG key ID: 55C211A1226CB17D
21 changed files with 41 additions and 64 deletions

View file

@ -27,8 +27,9 @@ import { replaceableComponent } from "../../../utils/replaceableComponent";
import { MatrixClient } from "matrix-js-sdk/src/client";
import BaseDialog from "./BaseDialog";
import { IAuthData } from "matrix-js-sdk/src/interactive-auth";
import { IDialogProps } from "./IDialogProps";
interface IProps {
interface IProps extends IDialogProps {
// matrix client to use for UI auth requests
matrixClient: MatrixClient;
@ -43,8 +44,6 @@ interface IProps {
// callback
makeRequest: (auth: IAuthData) => Promise<IAuthData>;
onFinished: (confirmed: boolean, result?) => void;
// Optional title and body to show when not showing a particular stage
title?: string;
body?: string;