Skip to content

Commit

Permalink
Fix type issue
Browse files Browse the repository at this point in the history
  • Loading branch information
abetlen committed Apr 25, 2024
1 parent e38f530 commit 3277bf5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,9 @@ async function copyToClipboard(textToCopy: string) {
}
}

const reactMarkdownComponents = (theme) => ({
const reactMarkdownComponents = (
theme: { [key: string]: React.CSSProperties }
) => ({
h1: (props: any) => {
const { children, ...rest } = props;
return <h1 className="text-2xl font-bold">{children}</h1>;
Expand Down

0 comments on commit 3277bf5

Please sign in to comment.