Add success dialog after key backup (#10177)

This commit is contained in:
Michael Weimann 2023-02-17 13:35:13 +01:00 committed by GitHub
parent a854e941cc
commit 9b267e7bc4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 144 additions and 2 deletions

View file

@ -50,6 +50,9 @@ interface IProps extends IDialogProps {
// determine its size. Default: true.
"fixedWidth"?: boolean;
// To be displayed at the top of the dialog. Even above the title.
"top"?: React.ReactNode;
// Title for the dialog.
"title"?: JSX.Element | string;
// Specific aria label to use, if not provided will set aria-labelledBy to mx_Dialog_title
@ -161,6 +164,7 @@ export default class BaseDialog extends React.Component<IProps> {
mx_Dialog_fixedWidth: this.props.fixedWidth,
})}
>
{this.props.top}
<div
className={classNames("mx_Dialog_header", {
mx_Dialog_headerWithButton: !!this.props.headerButton,