File tree Expand file tree Collapse file tree
ui/react-example/src/components/PlayGround Expand file tree Collapse file tree Original file line number Diff line number Diff 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";
1919import { DiffView, DiffFile, DiffModeEnum } from "@git-diff-view/cli";
2020
2121const diffString = \`--- a/file.ts
@@ -38,7 +38,7 @@ diffFile.buildUnifiedDiffLines();
3838render(
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 />
You can’t perform that action at this time.
0 commit comments