Skip to content

Commit 947ffcd

Browse files
update site
1 parent e6edbed commit 947ffcd

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

ui/react-example/src/components/PlayGround/CliPlayGround.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export const CliPlayGround = () => {
1515
template="vite-react-ts"
1616
theme={colorScheme === "dark" ? "dark" : "light"}
1717
files={{
18-
"/app.tsx": `import { render } from "ink";
18+
"/App.tsx": `import { render } from "ink";
1919
import { DiffView, DiffFile, DiffModeEnum } from "@git-diff-view/cli";
2020
2121
const diffString = \`--- a/file.ts
@@ -38,7 +38,7 @@ diffFile.buildUnifiedDiffLines();
3838
render(
3939
<DiffView
4040
diffFile={diffFile}
41-
diffViewMode={DiffModeEnum.Unified}
41+
diffViewMode={DiffModeEnum.Split}
4242
diffViewHighlight={true}
4343
diffViewTheme="dark"
4444
/>
@@ -51,7 +51,7 @@ render(
5151
<SandpackCodeEditor showTabs />
5252
<Box className="flex flex-1 items-center justify-center overflow-hidden">
5353
<img
54-
src="https://raw.githubusercontent.com/MrWangJustToDo/MyAgent/main/edit-diff-view.png"
54+
src="https://raw.githubusercontent.com/MrWangJustToDo/git-diff-view/main/cli-diff.png"
5555
alt="@git-diff-view/cli terminal rendering"
5656
className="block w-full object-cover object-top"
5757
/>

0 commit comments

Comments
 (0)