This reverts commit 7632f36624
.
This commit is contained in:
parent
f819853cad
commit
35376996b0
12 changed files with 70 additions and 90 deletions
|
@ -18,7 +18,6 @@ import React, { ReactNode } from "react";
|
|||
|
||||
import AccessibleButton from "../elements/AccessibleButton";
|
||||
import { XOR } from "../../../@types/common";
|
||||
import { Caption } from "../typography/Caption";
|
||||
|
||||
export interface IProps {
|
||||
description: ReactNode;
|
||||
|
@ -41,7 +40,7 @@ const GenericToast: React.FC<XOR<IPropsExtended, IProps>> = ({
|
|||
onAccept,
|
||||
onReject,
|
||||
}) => {
|
||||
const detailContent = detail ? <Caption className="mx_Toast_detail">{detail}</Caption> : null;
|
||||
const detailContent = detail ? <div className="mx_Toast_detail">{detail}</div> : null;
|
||||
|
||||
return (
|
||||
<div>
|
||||
|
|
|
@ -19,14 +19,13 @@ import React, { HTMLAttributes } from "react";
|
|||
|
||||
interface Props extends Omit<HTMLAttributes<HTMLSpanElement>, "className"> {
|
||||
children: React.ReactNode;
|
||||
className?: string;
|
||||
isError?: boolean;
|
||||
}
|
||||
|
||||
export const Caption: React.FC<Props> = ({ children, className, isError, ...rest }) => {
|
||||
export const Caption: React.FC<Props> = ({ children, isError, ...rest }) => {
|
||||
return (
|
||||
<span
|
||||
className={classNames("mx_Caption", className, {
|
||||
className={classNames("mx_Caption", {
|
||||
mx_Caption_error: isError,
|
||||
})}
|
||||
{...rest}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue