2017-10-25 01:37:26 +03:00
|
|
|
/*
|
|
|
|
Copyright 2015, 2016 OpenMarket Ltd
|
2019-01-21 21:05:07 +03:00
|
|
|
Copyright 2019 New Vector Ltd
|
2019-12-13 05:31:52 +03:00
|
|
|
Copyright 2019 The Matrix.org Foundation C.I.C.
|
2017-10-25 01:37:26 +03:00
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
|
|
|
*/
|
|
|
|
|
2019-08-30 12:27:51 +03:00
|
|
|
import React from 'react';
|
2019-01-23 04:28:23 +03:00
|
|
|
import sdk from '../../../index';
|
2019-12-17 02:10:11 +03:00
|
|
|
import {replaceableComponent} from "../../../utils/replaceableComponent";
|
2017-10-25 01:37:26 +03:00
|
|
|
|
2019-12-17 02:10:11 +03:00
|
|
|
@replaceableComponent("views.auth.AuthPage")
|
2019-12-13 05:31:52 +03:00
|
|
|
export default class AuthPage extends React.PureComponent {
|
|
|
|
render() {
|
2019-01-23 04:28:23 +03:00
|
|
|
const AuthFooter = sdk.getComponent('auth.AuthFooter');
|
|
|
|
|
2019-01-21 21:05:07 +03:00
|
|
|
return (
|
2019-01-22 03:33:17 +03:00
|
|
|
<div className="mx_AuthPage">
|
2019-01-22 03:49:28 +03:00
|
|
|
<div className="mx_AuthPage_modal">
|
2019-12-13 05:31:52 +03:00
|
|
|
{this.props.children}
|
2019-01-22 03:49:28 +03:00
|
|
|
</div>
|
2019-01-23 04:28:23 +03:00
|
|
|
<AuthFooter />
|
2019-01-21 21:05:07 +03:00
|
|
|
</div>
|
|
|
|
);
|
2019-12-13 05:31:52 +03:00
|
|
|
}
|
|
|
|
}
|