From b08af477bfc1440316599dea834c4108a7a14bba Mon Sep 17 00:00:00 2001 From: Evan Simkowitz Date: Sat, 7 Sep 2024 11:01:46 -0700 Subject: [PATCH] fix typing some more --- frontend/app/element/markdown.tsx | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/frontend/app/element/markdown.tsx b/frontend/app/element/markdown.tsx index c1e5f25a2..52cf9644e 100644 --- a/frontend/app/element/markdown.tsx +++ b/frontend/app/element/markdown.tsx @@ -84,7 +84,7 @@ const CodeBlock = ({ children, onClickExecute }: CodeBlockProps) => { ); }; -const MarkdownSource = (props: any) => { +const MarkdownSource = (props: React.HTMLAttributes) => { return null; }; @@ -92,7 +92,7 @@ const MarkdownImg = ({ props, resolveOpts, }: { - props: React.ImgHTMLAttributes; + props: React.ImgHTMLAttributes; resolveOpts: MarkdownResolveOpts; }) => { const [resolvedSrc, setResolvedSrc] = useState(props.src); @@ -185,28 +185,28 @@ const Markdown = ({ text, textAtom, showTocAtom, style, className, resolveOpts, const markdownComponents = { a: Link, - h1: (props: React.HTMLAttributes) => ( + h1: (props: React.HTMLAttributes) => ( ), - h2: (props: React.HTMLAttributes) => ( + h2: (props: React.HTMLAttributes) => ( ), - h3: (props: React.HTMLAttributes) => ( + h3: (props: React.HTMLAttributes) => ( ), - h4: (props: React.HTMLAttributes) => ( + h4: (props: React.HTMLAttributes) => ( ), - h5: (props: React.HTMLAttributes) => ( + h5: (props: React.HTMLAttributes) => ( ), - h6: (props: React.HTMLAttributes) => ( + h6: (props: React.HTMLAttributes) => ( ), - img: (props: React.HTMLAttributes) => , - source: (props: React.HTMLAttributes) => , + img: (props: React.HTMLAttributes) => , + source: (props: React.HTMLAttributes) => , code: Code, - pre: (props: React.HTMLAttributes) => ( + pre: (props: React.HTMLAttributes) => ( ), };