Spaces:
Sleeping
Sleeping
Commit ·
859f406
1
Parent(s): d60c39c
Fix frontend blank screen by using antd message hook
Browse files
frontend/src/pages/App.jsx
CHANGED
|
@@ -5,6 +5,7 @@ import {
|
|
| 5 |
Form,
|
| 6 |
Input,
|
| 7 |
Layout,
|
|
|
|
| 8 |
Modal,
|
| 9 |
Progress,
|
| 10 |
Space,
|
|
@@ -35,7 +36,7 @@ export function App() {
|
|
| 35 |
const [loading, setLoading] = useState(false);
|
| 36 |
const [downloadOpen, setDownloadOpen] = useState(false);
|
| 37 |
const [extractOpen, setExtractOpen] = useState(false);
|
| 38 |
-
const [apiMsg, contextHolder] =
|
| 39 |
|
| 40 |
async function loadFiles(path = currentPath) {
|
| 41 |
setLoading(true);
|
|
|
|
| 5 |
Form,
|
| 6 |
Input,
|
| 7 |
Layout,
|
| 8 |
+
message,
|
| 9 |
Modal,
|
| 10 |
Progress,
|
| 11 |
Space,
|
|
|
|
| 36 |
const [loading, setLoading] = useState(false);
|
| 37 |
const [downloadOpen, setDownloadOpen] = useState(false);
|
| 38 |
const [extractOpen, setExtractOpen] = useState(false);
|
| 39 |
+
const [apiMsg, contextHolder] = message.useMessage();
|
| 40 |
|
| 41 |
async function loadFiles(path = currentPath) {
|
| 42 |
setLoading(true);
|