Revert "Implement new toast UI (#10467)" (#10740)

This reverts commit 7632f36624.
This commit is contained in:
Michael Weimann 2023-04-28 16:56:26 +02:00 committed by GitHub
parent f819853cad
commit 35376996b0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 70 additions and 90 deletions

View file

@ -15,7 +15,7 @@ limitations under the License.
*/
import EventEmitter from "events";
import React, { ReactElement } from "react";
import React from "react";
import { ComponentClass } from "../@types/common";
@ -24,14 +24,7 @@ export interface IToast<C extends ComponentClass> {
// higher priority number will be shown on top of lower priority
priority: number;
title?: string;
/**
* Icon class.
*
* @deprecated Use iconElement instead.
*/
icon?: string;
/** Icon element. Displayed left of the title. */
iconElement?: ReactElement;
component: C;
className?: string;
bodyClassName?: string;