mirror of https://github.com/vector-im/riot-web
39 lines
1.2 KiB
TypeScript
39 lines
1.2 KiB
TypeScript
/*
|
|
Copyright 2024 New Vector Ltd.
|
|
Copyright 2020 The Matrix.org Foundation C.I.C.
|
|
|
|
SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only
|
|
Please see LICENSE files in the repository root for full details.
|
|
*/
|
|
|
|
import React from "react";
|
|
import { MatrixClient } from "matrix-js-sdk/src/matrix";
|
|
|
|
import AuthPage from "../../views/auth/AuthPage";
|
|
import CompleteSecurityBody from "../../views/auth/CompleteSecurityBody";
|
|
import CreateCrossSigningDialog from "../../views/dialogs/security/CreateCrossSigningDialog";
|
|
|
|
interface IProps {
|
|
matrixClient: MatrixClient;
|
|
onFinished: () => void;
|
|
accountPassword?: string;
|
|
tokenLogin: boolean;
|
|
}
|
|
|
|
export default class E2eSetup extends React.Component<IProps> {
|
|
public render(): React.ReactNode {
|
|
return (
|
|
<AuthPage>
|
|
<CompleteSecurityBody>
|
|
<CreateCrossSigningDialog
|
|
matrixClient={this.props.matrixClient}
|
|
onFinished={this.props.onFinished}
|
|
accountPassword={this.props.accountPassword}
|
|
tokenLogin={this.props.tokenLogin}
|
|
/>
|
|
</CompleteSecurityBody>
|
|
</AuthPage>
|
|
);
|
|
}
|
|
}
|