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