We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5f702ff commit 1ff11c8Copy full SHA for 1ff11c8
package.json
@@ -22,7 +22,7 @@
22
"eslint": "^9.19.0",
23
"globals": "^15.14.0",
24
"prettier": "^3.4.2",
25
- "rspress": "^1.42.1",
+ "rspress": "^v2.0.0-alpha.0",
26
"typescript-eslint": "^8.22.0"
27
},
28
"description": "## Setup",
theme/index.tsx
@@ -1,11 +1,10 @@
1
-import Theme from 'rspress/theme';
2
-import { Content } from 'rspress/runtime';
+import { Layout as BasicLayout } from 'rspress/theme';
+// import { Content } from 'rspress/runtime';
3
import { HomeLayout } from './pages/index';
4
-const Layout = () => <Theme.Layout ><Content /></Theme.Layout>;
+const Layout = () => <BasicLayout />;
5
6
7
export default {
8
- ...Theme,
9
Layout,
10
HomeLayout,
11
};
0 commit comments