set object to accept function, prevent javascript error (#28192)

Этот коммит содержится в:
Scott Bishel
2024-09-13 14:21:56 -06:00
коммит произвёл GitHub
родитель 190d4c48b4
Коммит 46ca7747f8

Просмотреть файл

@@ -11,7 +11,7 @@ import FormattedMarkdownMessage, {CustomRenderer} from 'components/formatted_mar
type Props = {
isMarkdown?: boolean;
text: string | MessageDescriptor | JSX.Element;
textValues?: Record<string, React.ReactNode>;
textValues?: Record<string, string | (() => React.ReactNode)>;
}
const SchemaText = ({