Add IDialogAesthetics

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
Šimon Brandner 2021-09-13 18:12:47 +02:00
parent 27b9175ca3
commit 29ff5f3f9c
No known key found for this signature in database
GPG key ID: 55C211A1226CB17D

View file

@ -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<IProps, IStat
};
}
private getDefaultDialogAesthetics() {
private getDefaultDialogAesthetics(): IDialogAesthetics {
const ssoAesthetics = {
[SSOAuthEntry.PHASE_PREAUTH]: {
title: _t("Use Single Sign On to continue"),