mirror of
https://github.com/EthanMarti/infio-copilot.git
synced 2026-05-09 00:20:09 +00:00
fix style css in ts
This commit is contained in:
@@ -2,7 +2,8 @@ import React, { useMemo } from 'react'
|
||||
import Markdown from 'react-markdown'
|
||||
|
||||
import {
|
||||
ParsedinfioBlock,
|
||||
InfioBlockAction,
|
||||
ParsedInfioBlock,
|
||||
parseinfioBlocks,
|
||||
} from '../../utils/parse-infio-block'
|
||||
|
||||
@@ -23,7 +24,7 @@ function ReactMarkdown({
|
||||
children: string
|
||||
isApplying: boolean
|
||||
}) {
|
||||
const blocks: ParsedinfioBlock[] = useMemo(
|
||||
const blocks: ParsedInfioBlock[] = useMemo(
|
||||
() => parseinfioBlocks(children),
|
||||
[children],
|
||||
)
|
||||
@@ -35,7 +36,7 @@ function ReactMarkdown({
|
||||
<Markdown key={index} className="infio-markdown">
|
||||
{block.content}
|
||||
</Markdown>
|
||||
) : block.startLine && block.endLine && block.filename && block.action === 'reference' ? (
|
||||
) : block.startLine && block.endLine && block.filename && block.action === InfioBlockAction.Reference ? (
|
||||
<MarkdownReferenceBlock
|
||||
key={index}
|
||||
filename={block.filename}
|
||||
|
||||
Reference in New Issue
Block a user