2020-10-21 15:22:35 +03:00
|
|
|
/*
|
|
|
|
Copyright 2020 Element
|
|
|
|
|
|
|
|
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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
import * as React from "react";
|
|
|
|
import Modal from "../../Modal";
|
2020-11-13 13:56:42 +03:00
|
|
|
import HostingSignupDialog from "./HostingSignupDialog";
|
2020-10-21 15:22:35 +03:00
|
|
|
|
|
|
|
interface IProps {}
|
|
|
|
|
|
|
|
interface IState {}
|
|
|
|
|
2020-11-13 13:56:42 +03:00
|
|
|
export default class HostingSignupAction extends React.PureComponent<IProps, IState> {
|
2020-10-21 15:22:35 +03:00
|
|
|
private static openDialog() {
|
|
|
|
Modal.createDialog(
|
2020-11-13 13:56:42 +03:00
|
|
|
HostingSignupDialog, {}, "mx_HostingSignupDialog",
|
2020-10-21 15:22:35 +03:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
public render(): React.ReactNode {
|
|
|
|
return (
|
2020-11-13 13:56:42 +03:00
|
|
|
<div onClick={HostingSignupAction.openDialog} className="mx_HostingSignupAction">
|
2020-10-21 15:22:35 +03:00
|
|
|
Get your own personal Element!
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|