Skip to content

Commit

Permalink
fix(docs): antd breadcrumb example (#6613)
Browse files Browse the repository at this point in the history
  • Loading branch information
alicanerdurmaz authored Dec 30, 2024
1 parent 821a925 commit e6465a4
Showing 1 changed file with 11 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,19 +80,18 @@ const PostList = () => {
return (
<RefineAntd.List>
<p>Content of your list page...</p>
<RefineAntd.ShowButton recordItemId="123" resource="posts">
Show Post 123
</RefineAntd.ShowButton>
</RefineAntd.List>
);
};

setInitialRoutes(["/posts/show/123"]);

render(
<ReactRouterDom.BrowserRouter>
<RefineCore.Refine
dataProvider={RefineSimpleRest.default(
"https://api.fake-rest.refine.dev",
)}
routerProvider={RefineReactRouterV6.default}
<ReactRouter.BrowserRouter>
<RefineAntdDemo
resources={[
{
name: "posts",
Expand All @@ -103,13 +102,13 @@ render(
]}
>
<RefineAntd.Layout>
<ReactRouterDom.Routes>
<ReactRouterDom.Route path="/posts" element={<PostList />} />
<ReactRouterDom.Route path="/posts/show/:id" element={<PostShow />} />
</ReactRouterDom.Routes>
<ReactRouter.Routes>
<ReactRouter.Route path="/posts" element={<PostList />} />
<ReactRouter.Route path="/posts/show/:id" element={<PostShow />} />
</ReactRouter.Routes>
</RefineAntd.Layout>
</RefineCore.Refine>
</ReactRouterDom.BrowserRouter>,
</RefineAntdDemo>
</ReactRouter.BrowserRouter>,
);
```

Expand Down

0 comments on commit e6465a4

Please sign in to comment.