Skip to content

Commit

Permalink
Merge pull request #18 from josejulio/update-text-to-reactnode
Browse files Browse the repository at this point in the history
  • Loading branch information
fhlavac authored Jul 9, 2024
2 parents 8fe56a2 + c571042 commit fdaa4b3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const useStyles = createUseStyles({

interface AssistantMessageEntryProps {
options?: {
title: string;
title: React.ReactNode;
props?: LabelProps
}[],
icon?: React.ComponentType;
Expand Down
4 changes: 2 additions & 2 deletions packages/module/src/ConversationAlert/ConversationAlert.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import { Alert, TextContent } from '@patternfly/react-core';
import { createUseStyles } from 'react-jss';

export interface ConversationAlertProps {
/** Text for conversation alert */
title: string;
/** Content for conversation alert */
title: React.ReactNode;
/** Variant type for conversation alert */
variant?: 'success' | 'danger' | 'warning' | 'info' | 'custom';
children?: React.ReactNode;
Expand Down
2 changes: 1 addition & 1 deletion packages/module/src/VirtualAssistant/VirtualAssistant.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export interface VirtualAssistantProps {
/** Messages rendered within the assistant */
children?: React.ReactNode;
/** Header title for the assistant */
title?: string;
title?: React.ReactNode;
/** Input's placeholder for the assistant */
inputPlaceholder?: string;
/** Input's content */
Expand Down

0 comments on commit fdaa4b3

Please sign in to comment.