File tree Expand file tree Collapse file tree 3 files changed +46
-0
lines changed Expand file tree Collapse file tree 3 files changed +46
-0
lines changed Original file line number Diff line number Diff line change
1
+ import {
2
+ TestCaseComponentPage
3
+ } from "@cursorless/test-case-component" ;
4
+ import {
5
+ cheatsheetBodyClasses ,
6
+ } from "@cursorless/cheatsheet" ;
7
+
8
+ import Head from "next/head" ;
9
+
10
+ // See https://github.com/vercel/next.js/discussions/12325#discussioncomment-1116108
11
+ export async function getStaticProps ( ) {
12
+ return { props : { bodyClasses : cheatsheetBodyClasses } } ;
13
+ }
14
+
15
+ export function App ( ) {
16
+ return (
17
+ < >
18
+ < Head >
19
+ < title > Cursorless cheatsheet</ title >
20
+ </ Head >
21
+ < TestCaseComponentPage />
22
+ </ >
23
+ ) ;
24
+ }
25
+
26
+ export default App ;
Original file line number Diff line number Diff line change 1
1
export * from "./generate-examples" ;
2
+ export * from "./test-case-component" ;
Original file line number Diff line number Diff line change
1
+ import * as React from "react" ;
2
+
3
+ export const TestCaseComponentPage : React . FC = ( ) => {
4
+ return (
5
+ < main className = "dark:text-stone-100" >
6
+ < h1 className = "mb-1 mt-2 text-center text-2xl md:text-3xl xl:mt-4" >
7
+ Test Component Sheet{ " " }
8
+ < small className = "block text-sm" >
9
+ See the{ " " }
10
+ { /* <SmartLink to={"https://www.cursorless.org/docs/"}> */ }
11
+ full documentation
12
+ { /* </SmartLink>{" "} */ }
13
+ to learn more.
14
+ </ small >
15
+ </ h1 >
16
+ < p className = "mb-1 mt-2 text-center text-base xl:mt-4" > This is just to get the page working with an initial render before adding any more functionality</ p >
17
+ </ main >
18
+ ) ;
19
+ } ;
You can’t perform that action at this time.
0 commit comments