Files
ThreadNet-Web/src/components/structures/auth/E2eSetup.tsx
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
1.2 KiB
TypeScript
Raw Normal View History

/*
2024-09-09 14:57:16 +01:00
Copyright 2024 New Vector Ltd.
Copyright 2020 The Matrix.org Foundation C.I.C.
2024-09-09 14:57:16 +01:00
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";
2024-10-22 12:42:07 +01:00
import { MatrixClient } from "matrix-js-sdk/src/matrix";
2021-10-22 17:23:32 -05:00
import AuthPage from "../../views/auth/AuthPage";
import CompleteSecurityBody from "../../views/auth/CompleteSecurityBody";
import CreateCrossSigningDialog from "../../views/dialogs/security/CreateCrossSigningDialog";
2021-07-03 11:37:06 +01:00
interface IProps {
2024-10-22 12:42:07 +01:00
matrixClient: MatrixClient;
2021-07-03 11:37:06 +01:00
onFinished: () => void;
accountPassword?: string;
2024-10-22 12:42:07 +01:00
tokenLogin: boolean;
2021-07-03 11:37:06 +01:00
}
2021-07-03 11:37:06 +01:00
export default class E2eSetup extends React.Component<IProps> {
public render(): React.ReactNode {
return (
<AuthPage>
<CompleteSecurityBody>
<CreateCrossSigningDialog
2024-10-22 12:42:07 +01:00
matrixClient={this.props.matrixClient}
onFinished={this.props.onFinished}
2020-01-25 15:28:06 +00:00
accountPassword={this.props.accountPassword}
2021-01-27 12:50:12 +00:00
tokenLogin={this.props.tokenLogin}
/>
</CompleteSecurityBody>
</AuthPage>
);
}
}