* Rename CreateCrossSigningDialog to InitialCryptoSetup because it will soon encompass things other than just creating cross signing. * Fix name & tests * Fix import * Remove code creating key backup Because this was split out from my key backup by default PR * Fix comment * Convert to named export
38 lines
1.2 KiB
TypeScript
38 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 { InitialCryptoSetupDialog } from "../../views/dialogs/security/InitialCryptoSetupDialog";
|
|
|
|
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>
|
|
<InitialCryptoSetupDialog
|
|
matrixClient={this.props.matrixClient}
|
|
onFinished={this.props.onFinished}
|
|
accountPassword={this.props.accountPassword}
|
|
tokenLogin={this.props.tokenLogin}
|
|
/>
|
|
</CompleteSecurityBody>
|
|
</AuthPage>
|
|
);
|
|
}
|
|
}
|