From 31c7c05f2eec260dc0d1b44360bf5650010cb64e Mon Sep 17 00:00:00 2001 From: Jason Robinson Date: Wed, 2 Dec 2020 11:12:45 +0200 Subject: [PATCH] Convert ConfirmCloseHostingSignupDialog to typescript --- ...Dialog.js => ConfirmCloseHostingSignupDialog.tsx} | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) rename src/components/views/dialogs/{ConfirmCloseHostingSignupDialog.js => ConfirmCloseHostingSignupDialog.tsx} (84%) diff --git a/src/components/views/dialogs/ConfirmCloseHostingSignupDialog.js b/src/components/views/dialogs/ConfirmCloseHostingSignupDialog.tsx similarity index 84% rename from src/components/views/dialogs/ConfirmCloseHostingSignupDialog.js rename to src/components/views/dialogs/ConfirmCloseHostingSignupDialog.tsx index 18f9365dff..c8cbf6a8f3 100644 --- a/src/components/views/dialogs/ConfirmCloseHostingSignupDialog.js +++ b/src/components/views/dialogs/ConfirmCloseHostingSignupDialog.tsx @@ -15,15 +15,21 @@ limitations under the License. */ import React from 'react'; +import QuestionDialog from './QuestionDialog'; import { _t } from "../../../languageHandler"; -import * as sdk from '../../../index'; +import { IDialogProps } from "./IDialogProps"; + +interface IProps extends IDialogProps { + onFinished(): void; +} + +interface IState {} /* * A dialog for confirming closing the Hosting signup setup dialog. */ -export default class ConfirmCloseHostingSignupDialog extends React.Component { +export default class ConfirmCloseHostingSignupDialog extends React.PureComponent { public render() { - const QuestionDialog = sdk.getComponent('views.dialogs.QuestionDialog'); return (