Skip to content

Commit

Permalink
📝 docs: 为 demo 新增 StyledProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
arvinxx committed Jan 21, 2023
1 parent 5ffb790 commit 576465b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .dumi/theme/layouts/DemoLayout/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { StyleProvider } from 'antd-style';
import { useOutlet } from 'dumi';

export default () => {
const outlet = useOutlet();
return <StyleProvider prefix={'demo'}>{outlet}</StyleProvider>;
};

0 comments on commit 576465b

Please sign in to comment.