mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 11:47:23 +03:00
Migrate VerificationComplete to TypeScript
This commit is contained in:
parent
b18691a1cb
commit
a1135783bc
1 changed files with 6 additions and 7 deletions
|
@ -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.VerificationComplete")
|
interface IProps {
|
||||||
export default class VerificationComplete extends React.Component {
|
onDone: () => void;
|
||||||
static propTypes = {
|
}
|
||||||
onDone: PropTypes.func.isRequired,
|
|
||||||
}
|
|
||||||
|
|
||||||
render() {
|
@replaceableComponent("views.verification.VerificationComplete")
|
||||||
|
export default class VerificationComplete 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>
|
||||||
<h2>{_t("Verified!")}</h2>
|
<h2>{_t("Verified!")}</h2>
|
Loading…
Reference in a new issue