Skip to content

Commit 57c352c

Browse files
committed
docs(sandpack): update code file snapshots
1 parent d6e00a4 commit 57c352c

File tree

1 file changed

+5
-5
lines changed
  • documentation/src/components/sandpack

1 file changed

+5
-5
lines changed

documentation/src/components/sandpack/index.tsx

+5-5
Original file line numberDiff line numberDiff line change
@@ -415,12 +415,12 @@ const SandpackHiddenSnapshot = ({
415415
<section className="hidden max-w-0 max-h-0">
416416
<h6>Code Example</h6>
417417
{/* {dependencyList} */}
418-
<div>{"Code Files"}</div>
419418
{visibleFiles.map((f) => (
420-
<div key={f}>
421-
<div>{`File: ${f}`}</div>
422-
<div>Content:</div>
423-
<pre>{getFileContent(files[f])}</pre>
419+
<div data-filename={f} key={f}>
420+
<pre>
421+
{`// file: ${f} \n`}
422+
{getFileContent(files[f])}
423+
</pre>
424424
</div>
425425
))}
426426
</section>

0 commit comments

Comments
 (0)