aboutsummaryrefslogtreecommitdiffstats
path: root/src/App.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/App.tsx')
-rw-r--r--src/App.tsx22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/App.tsx b/src/App.tsx
index 905149e..9e78af3 100644
--- a/src/App.tsx
+++ b/src/App.tsx
@@ -1,28 +1,9 @@
-import { useExamples } from "./api"
import styles from "./App.module.css"
import Editor from "./Editor"
import Tutorial from "./Tutorial"
import icon from "./favicon.png"
const App = () => {
- const examples = useExamples()
-
- const renderExamples = () => {
- switch (examples.type) {
- case "not_yet_requested":
- case "loading":
- return <div>Loading examples...</div>
- case "failed":
- return <div className={styles.error}>
- An unexpected error occurred while loading examples. See console for details.
- </div>
- case "success":
- return examples.data.map((example) =>
- <div key={example.id}>{example.title}</div>,
- )
- }
- }
-
return (
<div className={styles.app}>
<header className={styles.header}>
@@ -34,9 +15,6 @@ const App = () => {
<small>A Mere Stack Language</small>
</div>
</header>
- <div className={styles.examples}>
- {renderExamples()}
- </div>
<div className={styles.editor}><Editor /></div>
<div className={styles.tutorial}><Tutorial /></div>
</div>