You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-05 23:10:41 +03:00
Add separate component for post-auth security flows
Instead of twisting `AuthBody`, this adds a new component for the different styling of post-auth security flows. This also makes them fixed width and adjusts padding to match designs.
This commit is contained in:
@@ -112,7 +112,7 @@ export default class CompleteSecurity extends React.Component {
|
||||
|
||||
render() {
|
||||
const AuthPage = sdk.getComponent("auth.AuthPage");
|
||||
const AuthBody = sdk.getComponent("auth.AuthBody");
|
||||
const CompleteSecurityBody = sdk.getComponent("auth.CompleteSecurityBody");
|
||||
const AccessibleButton = sdk.getComponent("elements.AccessibleButton");
|
||||
|
||||
const {
|
||||
@@ -204,7 +204,7 @@ export default class CompleteSecurity extends React.Component {
|
||||
|
||||
return (
|
||||
<AuthPage>
|
||||
<AuthBody header={false}>
|
||||
<CompleteSecurityBody>
|
||||
<h2 className="mx_CompleteSecurity_header">
|
||||
{icon}
|
||||
{title}
|
||||
@@ -212,7 +212,7 @@ export default class CompleteSecurity extends React.Component {
|
||||
<div className="mx_CompleteSecurity_body">
|
||||
{body}
|
||||
</div>
|
||||
</AuthBody>
|
||||
</CompleteSecurityBody>
|
||||
</AuthPage>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user