Skip to content

Commit

Permalink
remove chat display change from this pr
Browse files Browse the repository at this point in the history
  • Loading branch information
koji committed May 31, 2024
1 parent c9cb7d5 commit 71067ec
Showing 1 changed file with 13 additions and 25 deletions.
38 changes: 13 additions & 25 deletions opentrons-ai-client/src/molecules/ChatDisplay/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,31 +65,19 @@ export function ChatDisplay({ chat, chatId }: ChatDisplayProps): JSX.Element {
gridGap={SPACING.spacing16}
position={POSITION_RELATIVE}
>
{isUser ? (
<Markdown
components={{
div: undefined,
li: ListItemText,
p: ParagraphText,
}}
>
{reply}
</Markdown>
) : (
<Markdown
components={{
div: undefined,
ul: UnnumberedListText,
h2: HeaderText,
li: ListItemText,
p: ParagraphText,
a: ExternalLink,
code: CodeText,
}}
>
{reply}
</Markdown>
)}
<Markdown
components={{
div: undefined,
ul: UnnumberedListText,
h2: HeaderText,
li: ListItemText,
p: ParagraphText,
a: ExternalLink,
code: CodeText,
}}
>
{reply}
</Markdown>
{!isUser ? (
<PrimaryButton
position={POSITION_ABSOLUTE}
Expand Down

0 comments on commit 71067ec

Please sign in to comment.