~repos /edge-city
git clone https://pyrossh.dev/repos/edge-city.git
edge-city is a next level meta-framework for react that runs only on edge runtimes
d41c00d6
—
pyrossh 2 years ago
fix warnings
example/src/pages/app.jsx
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Suspense } from "react";
|
|
2
1
|
import { SSRProvider } from "react-aria";
|
|
3
2
|
import Layout from "@/components/Layout/Layout";
|
|
4
3
|
import "./normalize.css";
|
|
@@ -9,9 +8,7 @@ export default function App({ children }) {
|
|
|
9
8
|
return (
|
|
10
9
|
<SSRProvider>
|
|
11
10
|
<Layout>
|
|
12
|
-
<Suspense fallback={<p>Loading...</p>}>
|
|
13
|
-
|
|
11
|
+
{children}
|
|
14
|
-
</Suspense>
|
|
15
12
|
</Layout>
|
|
16
13
|
</SSRProvider>
|
|
17
14
|
);
|
example/src/pages/todos/page.jsx
CHANGED
|
@@ -33,7 +33,7 @@ export default function Page() {
|
|
|
33
33
|
<div className="container">
|
|
34
34
|
<p className="subtitle">Share this page to collaborate with others.</p>
|
|
35
35
|
<form onSubmit={handleSubmit(mutate)}>
|
|
36
|
-
<TextField isRequired isReadOnly={isMutating}>
|
|
36
|
+
<TextField isRequired isReadOnly={isMutating} aria-label="add-todo">
|
|
37
37
|
<Input {...register("text")} placeholder="Add a todo item" />
|
|
38
38
|
{err?.text && <p>{err.text._errors[0]}</p>}
|
|
39
39
|
</TextField>
|