Migrate ConfirmRedactDialog to TypeScript

pull/21833/head
Germain Souquet 2021-06-14 21:31:17 +01:00
parent 6877504f2d
commit 9443ef4ff9
1 changed files with 5 additions and 1 deletions

View File

@ -19,11 +19,15 @@ import * as sdk from '../../../index';
import { _t } from '../../../languageHandler'; import { _t } from '../../../languageHandler';
import {replaceableComponent} from "../../../utils/replaceableComponent"; import {replaceableComponent} from "../../../utils/replaceableComponent";
interface IProps {
onFinished: (success: boolean) => void;
}
/* /*
* A dialog for confirming a redaction. * A dialog for confirming a redaction.
*/ */
@replaceableComponent("views.dialogs.ConfirmRedactDialog") @replaceableComponent("views.dialogs.ConfirmRedactDialog")
export default class ConfirmRedactDialog extends React.Component { export default class ConfirmRedactDialog extends React.Component<IProps> {
render() { render() {
const TextInputDialog = sdk.getComponent('views.dialogs.TextInputDialog'); const TextInputDialog = sdk.getComponent('views.dialogs.TextInputDialog');
return ( return (