Convert ConfirmCloseHostingSignupDialog to typescript

pull/21833/head
Jason Robinson 2020-12-02 11:12:45 +02:00
parent c03a50e34b
commit 31c7c05f2e
1 changed files with 9 additions and 3 deletions

View File

@ -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<IProps, IState> {
public render() {
const QuestionDialog = sdk.getComponent('views.dialogs.QuestionDialog');
return (
<QuestionDialog
onFinished={this.props.onFinished}