From a1d750a4aa561fc222030bac59c34e5c5f41ce6d Mon Sep 17 00:00:00 2001 From: Jason Robinson Date: Fri, 13 Nov 2020 12:56:42 +0200 Subject: [PATCH] Rename a few things, make hosting signup config an object --- ...oviderTrigger.tsx => HostingSignupAction.tsx} | 8 ++++---- ...roviderDialog.tsx => HostingSignupDialog.tsx} | 6 +++--- src/components/structures/UserMenu.tsx | 16 ++++++++-------- 3 files changed, 15 insertions(+), 15 deletions(-) rename src/components/structures/{HostingProviderTrigger.tsx => HostingSignupAction.tsx} (73%) rename src/components/structures/{HostingProviderDialog.tsx => HostingSignupDialog.tsx} (91%) diff --git a/src/components/structures/HostingProviderTrigger.tsx b/src/components/structures/HostingSignupAction.tsx similarity index 73% rename from src/components/structures/HostingProviderTrigger.tsx rename to src/components/structures/HostingSignupAction.tsx index bc7733ce60..7434abfff8 100644 --- a/src/components/structures/HostingProviderTrigger.tsx +++ b/src/components/structures/HostingSignupAction.tsx @@ -16,22 +16,22 @@ limitations under the License. import * as React from "react"; import Modal from "../../Modal"; -import HostingProviderDialog from "./HostingProviderDialog"; +import HostingSignupDialog from "./HostingSignupDialog"; interface IProps {} interface IState {} -export default class HostingProviderTrigger extends React.PureComponent { +export default class HostingSignupAction extends React.PureComponent { private static openDialog() { Modal.createDialog( - HostingProviderDialog, {}, "mx_HostingProviderDialog", + HostingSignupDialog, {}, "mx_HostingSignupDialog", ); } public render(): React.ReactNode { return ( -
+
Get your own personal Element!
); diff --git a/src/components/structures/HostingProviderDialog.tsx b/src/components/structures/HostingSignupDialog.tsx similarity index 91% rename from src/components/structures/HostingProviderDialog.tsx rename to src/components/structures/HostingSignupDialog.tsx index fd5799a1b7..7cd4e85046 100644 --- a/src/components/structures/HostingProviderDialog.tsx +++ b/src/components/structures/HostingSignupDialog.tsx @@ -24,7 +24,7 @@ interface IState { error: string, } -export default class HostingProviderDialog extends React.PureComponent { +export default class HostingSignupDialog extends React.PureComponent { iframeRef; hostingSignupUrl: string; @@ -36,7 +36,7 @@ export default class HostingProviderDialog extends React.PureComponent { @@ -83,7 +83,7 @@ export default class HostingProviderDialog extends React.PureComponent +