Skip to content

Commit

Permalink
fix(docs): use editable table example on antd doc
Browse files Browse the repository at this point in the history
  • Loading branch information
alicanerdurmaz committed Jan 29, 2025
1 parent 7acf534 commit 88dfcb6
Showing 1 changed file with 16 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,20 @@ const PostList: React.FC = () => {
};
// visible-block-end

setRefineProps({
resources: [
{
name: "posts",
list: PostList,
},
],
});

render(<RefineAntdDemo />);
render(
<ReactRouter.BrowserRouter>
<RefineAntdDemo
resources={[
{
name: "posts",
list: "/posts",
},
]}
>
<ReactRouter.Routes>
<ReactRouter.Route path="/posts" element={<PostList />} />
</ReactRouter.Routes>
</RefineAntdDemo>
</ReactRouter.BrowserRouter>,
);
```

0 comments on commit 88dfcb6

Please sign in to comment.