Skip to content

Commit cd701e5

Browse files
committed
wip: Update test-case-componet to import shiki
- uses type: any for now
1 parent d700e38 commit cd701e5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import * as React from "react";
2+
import { ShikiComponent } from './components/component-shiki'
23

3-
export const TestCaseComponentPage: React.FC = () => {
4+
export const TestCaseComponentPage: React.FC<{ data: any }> = ({ data }) => {
45
return (
56
<main className="dark:text-stone-100">
67
<h1 className="mb-1 mt-2 text-center text-2xl md:text-3xl xl:mt-4">
@@ -13,6 +14,7 @@ export const TestCaseComponentPage: React.FC = () => {
1314
to learn more.
1415
</small>
1516
</h1>
17+
{ data.map( (item:any) => <ShikiComponent data={item} /> ) }
1618
<p className="mb-1 mt-2 text-center text-base xl:mt-4">This is just to get the page working with an initial render before adding any more functionality</p>
1719
</main>
1820
);

0 commit comments

Comments
 (0)