Batch of views getting replaceableComponent decorators
This commit is contained in:
parent
c5935dbc61
commit
41576954fd
49 changed files with 98 additions and 1 deletions
|
@ -19,7 +19,9 @@ import { _t } from "../../../languageHandler";
|
|||
import AccessibleButton from "../elements/AccessibleButton";
|
||||
import Modal from "../../../Modal";
|
||||
import ServerOfflineDialog from "../dialogs/ServerOfflineDialog";
|
||||
import {replaceableComponent} from "../../../utils/replaceableComponent";
|
||||
|
||||
@replaceableComponent("views.toasts.NonUrgentEchoFailureToast")
|
||||
export default class NonUrgentEchoFailureToast extends React.PureComponent {
|
||||
private openDialog = () => {
|
||||
Modal.createTrackedDialog('Local Echo Server Error', '', ServerOfflineDialog, {});
|
||||
|
|
|
@ -29,6 +29,7 @@ import GenericToast from "./GenericToast";
|
|||
import {VerificationRequest} from "matrix-js-sdk/src/crypto/verification/request/VerificationRequest";
|
||||
import {DeviceInfo} from "matrix-js-sdk/src/crypto/deviceinfo";
|
||||
import {Action} from "../../../dispatcher/actions";
|
||||
import {replaceableComponent} from "../../../utils/replaceableComponent";
|
||||
|
||||
interface IProps {
|
||||
toastKey: string;
|
||||
|
@ -40,6 +41,7 @@ interface IState {
|
|||
device?: DeviceInfo;
|
||||
}
|
||||
|
||||
@replaceableComponent("views.toasts.VerificationRequestToast")
|
||||
export default class VerificationRequestToast extends React.PureComponent<IProps, IState> {
|
||||
private intervalHandle: NodeJS.Timeout;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue