This reverts commit 7632f36624
.
This commit is contained in:
parent
f819853cad
commit
35376996b0
12 changed files with 70 additions and 90 deletions
|
@ -143,7 +143,7 @@ import { findDMForUser } from "../../utils/dm/findDMForUser";
|
|||
import { Linkify } from "../../HtmlUtils";
|
||||
import { NotificationColor } from "../../stores/notifications/NotificationColor";
|
||||
import { UserTab } from "../views/dialogs/UserTab";
|
||||
import { Icon as EncryptionIcon } from "../../../res/img/compound/encryption-24px.svg";
|
||||
|
||||
// legacy export
|
||||
export { default as Views } from "../../Views";
|
||||
|
||||
|
@ -1668,9 +1668,7 @@ export default class MatrixChat extends React.PureComponent<IProps, IState> {
|
|||
ToastStore.sharedInstance().addOrReplaceToast({
|
||||
key: "verifreq_" + request.channel.transactionId,
|
||||
title: _t("Verification requested"),
|
||||
iconElement: (
|
||||
<EncryptionIcon className="mx_Icon mx_Icon_24 mx_Icon_secondary-content mx_Toast_icon" />
|
||||
),
|
||||
icon: "verification",
|
||||
props: { request },
|
||||
component: VerificationRequestToast,
|
||||
priority: 90,
|
||||
|
|
|
@ -57,10 +57,10 @@ export default class ToastContainer extends React.Component<{}, IState> {
|
|||
let containerClasses;
|
||||
if (totalCount !== 0) {
|
||||
const topToast = this.state.toasts[0];
|
||||
const { title, icon, iconElement, key, component, className, bodyClassName, props } = topToast;
|
||||
const { title, icon, key, component, className, bodyClassName, props } = topToast;
|
||||
const bodyClasses = classNames("mx_Toast_body", bodyClassName);
|
||||
const toastClasses = classNames("mx_Toast_toast", className, {
|
||||
mx_Toast_hasIcon: icon || iconElement,
|
||||
mx_Toast_hasIcon: icon,
|
||||
[`mx_Toast_icon_${icon}`]: icon,
|
||||
});
|
||||
const toastProps = Object.assign({}, props, {
|
||||
|
@ -86,7 +86,6 @@ export default class ToastContainer extends React.Component<{}, IState> {
|
|||
|
||||
toast = (
|
||||
<div className={toastClasses}>
|
||||
{iconElement}
|
||||
{titleElement}
|
||||
<div className={bodyClasses}>{content}</div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue