Spaces:
Running
Running
Tony Powell
commited on
Commit
·
61ace77
1
Parent(s):
bd38c25
Improve initial loading state
Browse files- dist/{index-BWkEBJsP.js → index-Bg5EPHBf.js} +0 -0
- dist/index.html +1 -1
- src/App.tsx +2 -1
dist/{index-BWkEBJsP.js → index-Bg5EPHBf.js}
RENAMED
The diff for this file is too large to render.
See raw diff
|
|
dist/index.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
7 |
<title>Vite + React + TS</title>
|
8 |
<link rel="stylesheet" href="https://rsms.me/inter/inter.css">
|
9 |
-
<script type="module" crossorigin src="/dist/index-
|
10 |
<link rel="stylesheet" crossorigin href="/dist/index-D_-vwcvz.css">
|
11 |
</head>
|
12 |
<body>
|
|
|
6 |
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
7 |
<title>Vite + React + TS</title>
|
8 |
<link rel="stylesheet" href="https://rsms.me/inter/inter.css">
|
9 |
+
<script type="module" crossorigin src="/dist/index-Bg5EPHBf.js"></script>
|
10 |
<link rel="stylesheet" crossorigin href="/dist/index-D_-vwcvz.css">
|
11 |
</head>
|
12 |
<body>
|
src/App.tsx
CHANGED
@@ -72,6 +72,7 @@ function App() {
|
|
72 |
className="w-full"
|
73 |
type="submit"
|
74 |
disabled={
|
|
|
75 |
!nextDatasetUrl ||
|
76 |
(nextDatasetUrl === datasetUrl && !!dataset) ||
|
77 |
loading
|
@@ -128,7 +129,7 @@ function App() {
|
|
128 |
</form>
|
129 |
)}
|
130 |
<div className="flex flex-col gap-2 w-full max-w-full overflow-x-auto bg-secondary rounded">
|
131 |
-
{loading && (
|
132 |
<p className="text-lg font-medium self-center">Loading...</p>
|
133 |
)}
|
134 |
{error && <p style={{ color: "red" }}>{error}</p>}
|
|
|
72 |
className="w-full"
|
73 |
type="submit"
|
74 |
disabled={
|
75 |
+
!db ||
|
76 |
!nextDatasetUrl ||
|
77 |
(nextDatasetUrl === datasetUrl && !!dataset) ||
|
78 |
loading
|
|
|
129 |
</form>
|
130 |
)}
|
131 |
<div className="flex flex-col gap-2 w-full max-w-full overflow-x-auto bg-secondary rounded">
|
132 |
+
{(!db || loading) && (
|
133 |
<p className="text-lg font-medium self-center">Loading...</p>
|
134 |
)}
|
135 |
{error && <p style={{ color: "red" }}>{error}</p>}
|