Skip to content

Commit

Permalink
docs(sandpack): update code file snapshots (#6605)
Browse files Browse the repository at this point in the history
  • Loading branch information
aliemir authored Dec 25, 2024
1 parent 60622de commit c9ba139
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions documentation/src/components/sandpack/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -391,13 +391,13 @@ const SandpackBase = ({
<p>{`Dependencies: ${Object.keys(dependencies ?? {}).map(
(k) => `${k}@${dependencies[k]}`,
)}`}</p>
<h3>{"Code Files"}</h3>
<div>{"Code Files"}</div>
{Object.keys(files ?? {}).map((f) => (
<div key={f}>
<div>{`File: ${f}`}</div>
<div>
<pre>
{`Content: ${"code" in files[f] ? files[f].code : files[f]}`}
</div>
</pre>
</div>
))}
</section>
Expand Down

0 comments on commit c9ba139

Please sign in to comment.