Skip to content

Commit da54e67

Browse files
committed
fix: breadcrumb for My Traces shows Demo / in react ui
Signed-off-by: Nick Mitchell <[email protected]>
1 parent 7805c3c commit da54e67

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import Page from "./Page"
2+
3+
type Props = {
4+
name: string
5+
value: string
6+
}
7+
8+
export default function MyTrace({ name, value }: Props) {
9+
return <Page breadcrumb1="My Traces" breadcrumb2={name} value={value} />
10+
}

pdl-live-react/src/routes/PdlRoutes.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { Routes, Route } from "react-router-dom"
33

44
const Demo = lazy(() => import("../page/Demo"))
55
const About = lazy(() => import("../page/About"))
6+
const MyTrace = lazy(() => import("../page/MyTrace"))
67
const Welcome = lazy(() => import("../page/Welcome"))
78
const Uploader = lazy(() => import("../page/Uploader"))
89
const PageNotFound = lazy(() => import("../page/PageNotFound"))
@@ -64,7 +65,7 @@ export default function PdlRoutes() {
6465
path={`/my/${title}`}
6566
element={
6667
<Suspense>
67-
<Demo name={title} value={value} />
68+
<MyTrace name={title} value={value} />
6869
</Suspense>
6970
}
7071
/>

0 commit comments

Comments
 (0)