Skip to content

Commit

Permalink
Merge pull request #16 from josejulio/update-icon-types
Browse files Browse the repository at this point in the history
  • Loading branch information
fhlavac authored Jul 9, 2024
2 parents 651b153 + b46b213 commit 8fe56a2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ interface AssistantMessageEntryProps {
title: string;
props?: LabelProps
}[],
icon?: React.ComponentClass;
icon?: React.ComponentType;
}

export const AssistantMessageEntry = ({ children, options, icon: IconComponent = RobotIcon }: PropsWithChildren<AssistantMessageEntryProps>) => {
Expand Down
2 changes: 1 addition & 1 deletion packages/module/src/LoadingMessage/LoadingMessage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const useStyles = createUseStyles({
})

export interface LoadingMessageProps {
icon?: React.ComponentClass;
icon?: React.ComponentType;
}

export const LoadingMessage: React.FunctionComponent<LoadingMessageProps> = ({ icon: IconComponent = RobotIcon }) => {
Expand Down
2 changes: 1 addition & 1 deletion packages/module/src/UserMessageEntry/UserMessageEntry.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const useStyles = createUseStyles({
})

interface UserMessageEntryProps {
icon?: React.ComponentClass;
icon?: React.ComponentType;
}

const UserMessageEntry = ({ children, icon: IconComponent = OutlinedUserIcon }: PropsWithChildren<UserMessageEntryProps>) => {
Expand Down

0 comments on commit 8fe56a2

Please sign in to comment.