Skip to content

Commit a9332e0

Browse files
committed
refactor: Switch to component function declaration in shikiComponent
1 parent 5c60f0c commit a9332e0

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

packages/test-case-component/src/components/shikiComponent.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
import * as React from "react";
2-
3-
export const ShikiComponent: React.FC<{ data: any }> = ({ data }) => {
1+
export function ShikiComponent({ data }: { data: any }) {
42
return (
53
<div className="max-w-xl overflow-auto p-4">
64
<div className="p-8">
@@ -20,7 +18,7 @@ export const ShikiComponent: React.FC<{ data: any }> = ({ data }) => {
2018
</details>
2119
</div>
2220
);
23-
};
21+
}
2422

2523
const Before = ({ content }: { content: string }) => {
2624
return <div className="p-4" dangerouslySetInnerHTML={{ __html: content }} />;

0 commit comments

Comments
 (0)