Migrate VerificationCancelled to TypeScript
parent
66dde68377
commit
b18691a1cb
|
@ -15,18 +15,17 @@ limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import PropTypes from 'prop-types';
|
|
||||||
import * as sdk from '../../../index';
|
import * as sdk from '../../../index';
|
||||||
import { _t } from '../../../languageHandler';
|
import { _t } from '../../../languageHandler';
|
||||||
import { replaceableComponent } from "../../../utils/replaceableComponent";
|
import { replaceableComponent } from "../../../utils/replaceableComponent";
|
||||||
|
|
||||||
@replaceableComponent("views.verification.VerificationCancelled")
|
interface IProps {
|
||||||
export default class VerificationCancelled extends React.Component {
|
onDone: () => void;
|
||||||
static propTypes = {
|
}
|
||||||
onDone: PropTypes.func.isRequired,
|
|
||||||
}
|
|
||||||
|
|
||||||
render() {
|
@replaceableComponent("views.verification.VerificationCancelled")
|
||||||
|
export default class VerificationCancelled extends React.Component<IProps> {
|
||||||
|
public render(): React.ReactNode {
|
||||||
const DialogButtons = sdk.getComponent('views.elements.DialogButtons');
|
const DialogButtons = sdk.getComponent('views.elements.DialogButtons');
|
||||||
return <div>
|
return <div>
|
||||||
<p>{_t(
|
<p>{_t(
|
Loading…
Reference in New Issue