This repository was archived by the owner on Sep 11, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +12
-13
lines changed
src/components/views/dialogs Expand file tree Collapse file tree 1 file changed +12
-13
lines changed Original file line number Diff line number Diff line change 11/*
2- Copyright 2020 The Matrix.org Foundation C.I.C.
2+ Copyright 2021 The Matrix.org Foundation C.I.C.
33
44Licensed under the Apache License, Version 2.0 (the "License");
55you may not use this file except in compliance with the License.
@@ -15,25 +15,24 @@ limitations under the License.
1515*/
1616
1717import React from 'react' ;
18- import PropTypes from 'prop-types' ;
1918import { _t } from "../../../languageHandler" ;
20- import * as sdk from "../../../index" ;
2119import { replaceableComponent } from "../../../utils/replaceableComponent" ;
2220
21+ import BaseDialog from "./BaseDialog" ;
22+ import DialogButtons from "../elements/DialogButtons" ;
23+
24+ interface IProps {
25+ onFinished ( ) : void ;
26+ }
27+
2328@replaceableComponent ( "views.dialogs.SeshatResetDialog" )
24- export default class SeshatResetDialog extends React . Component {
25- static propTypes = {
26- onFinished : PropTypes . func . isRequired ,
27- } ;
29+ export default class SeshatResetDialog extends React . PureComponent < IProps > {
2830 render ( ) {
29- const BaseDialog = sdk . getComponent ( 'views.dialogs.BaseDialog' ) ;
30- const DialogButtons = sdk . getComponent ( 'views.elements.DialogButtons' ) ;
31-
3231 return (
3332 < BaseDialog
34- hasCancel = { true }
35- onFinished = { this . props . onFinished . bind ( null , false ) }
36- title = { _t ( "Reset event index store?" ) } >
33+ hasCancel = { true }
34+ onFinished = { this . props . onFinished . bind ( null , false ) }
35+ title = { _t ( "Reset event index store?" ) } >
3736 < div >
3837 < p >
3938 { _t (
You can’t perform that action at this time.
0 commit comments