Merge pull request #5734 from matrix-org/travis/skinning/pt3-easy-comps

[SK-3] Decorate easy components with replaceableComponent
This commit is contained in:
Travis Ralston 2021-03-11 07:26:20 -07:00 committed by GitHub
commit 229a95f190
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
296 changed files with 595 additions and 8 deletions

View file

@ -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, {});

View file

@ -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;
@ -41,6 +42,7 @@ interface IState {
ip?: string;
}
@replaceableComponent("views.toasts.VerificationRequestToast")
export default class VerificationRequestToast extends React.PureComponent<IProps, IState> {
private intervalHandle: NodeJS.Timeout;