string | React.ReactNode -> React.ReactNode
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
682d2a3647
commit
38b3b7150f
|
@ -2,7 +2,7 @@ import classNames from 'classnames';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|
||||||
interface IBadge {
|
interface IBadge {
|
||||||
title: string | React.ReactNode,
|
title: React.ReactNode,
|
||||||
slug: 'patron' | 'donor' | 'admin' | 'moderator' | 'bot' | 'opaque',
|
slug: 'patron' | 'donor' | 'admin' | 'moderator' | 'bot' | 'opaque',
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -80,7 +80,7 @@ const CardHeader: React.FC<ICardHeader> = ({ children, backHref, onBackClick }):
|
||||||
};
|
};
|
||||||
|
|
||||||
interface ICardTitle {
|
interface ICardTitle {
|
||||||
title: string | React.ReactNode
|
title: React.ReactNode
|
||||||
}
|
}
|
||||||
|
|
||||||
/** A card's title. */
|
/** A card's title. */
|
||||||
|
|
|
@ -50,7 +50,7 @@ interface IModal {
|
||||||
/** Don't focus the "confirm" button on mount. */
|
/** Don't focus the "confirm" button on mount. */
|
||||||
skipFocus?: boolean,
|
skipFocus?: boolean,
|
||||||
/** Title text for the modal. */
|
/** Title text for the modal. */
|
||||||
title: string | React.ReactNode,
|
title: React.ReactNode,
|
||||||
width?: Widths,
|
width?: Widths,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,7 @@ const messages = defineMessages({
|
||||||
|
|
||||||
interface IAccordion {
|
interface IAccordion {
|
||||||
headline: React.ReactNode,
|
headline: React.ReactNode,
|
||||||
children?: string | React.ReactNode,
|
children?: React.ReactNode,
|
||||||
menu?: Menu,
|
menu?: Menu,
|
||||||
expanded?: boolean,
|
expanded?: boolean,
|
||||||
onToggle?: (value: boolean) => void,
|
onToggle?: (value: boolean) => void,
|
||||||
|
|
Loading…
Reference in New Issue