Skip to content

Commit

Permalink
fix: breadcrumb for My Traces shows Demo / in react ui
Browse files Browse the repository at this point in the history
Signed-off-by: Nick Mitchell <[email protected]>
  • Loading branch information
starpit committed Jan 24, 2025
1 parent 7805c3c commit da54e67
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
10 changes: 10 additions & 0 deletions pdl-live-react/src/page/MyTrace.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import Page from "./Page"

type Props = {
name: string
value: string
}

export default function MyTrace({ name, value }: Props) {
return <Page breadcrumb1="My Traces" breadcrumb2={name} value={value} />
}
3 changes: 2 additions & 1 deletion pdl-live-react/src/routes/PdlRoutes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { Routes, Route } from "react-router-dom"

const Demo = lazy(() => import("../page/Demo"))
const About = lazy(() => import("../page/About"))
const MyTrace = lazy(() => import("../page/MyTrace"))
const Welcome = lazy(() => import("../page/Welcome"))
const Uploader = lazy(() => import("../page/Uploader"))
const PageNotFound = lazy(() => import("../page/PageNotFound"))
Expand Down Expand Up @@ -64,7 +65,7 @@ export default function PdlRoutes() {
path={`/my/${title}`}
element={
<Suspense>
<Demo name={title} value={value} />
<MyTrace name={title} value={value} />
</Suspense>
}
/>
Expand Down

0 comments on commit da54e67

Please sign in to comment.