Spaces:
Sleeping
Sleeping
fix build error
Browse files- web/src/App.tsx +3 -2
web/src/App.tsx
CHANGED
|
@@ -8,7 +8,8 @@ import './App.css';
|
|
| 8 |
import {
|
| 9 |
mathJaxConfig,
|
| 10 |
preprocessMathContent,
|
| 11 |
-
hasMathContent
|
|
|
|
| 12 |
} from './mathjax-config';
|
| 13 |
|
| 14 |
|
|
@@ -345,7 +346,7 @@ function App() {
|
|
| 345 |
const [isLoading, setIsLoading] = useState(false);
|
| 346 |
const [responseComplete, setResponseComplete] = useState(false);
|
| 347 |
const [statusMessage, setStatusMessage] = useState('');
|
| 348 |
-
const [showMathPreview] = useState(true);
|
| 349 |
const messagesEndRef = useRef<HTMLDivElement>(null);
|
| 350 |
const messagesContainerRef = useRef<HTMLDivElement>(null);
|
| 351 |
const abortControllerRef = useRef<AbortController | null>(null);
|
|
|
|
| 8 |
import {
|
| 9 |
mathJaxConfig,
|
| 10 |
preprocessMathContent,
|
| 11 |
+
hasMathContent,
|
| 12 |
+
extractMathExpressions
|
| 13 |
} from './mathjax-config';
|
| 14 |
|
| 15 |
|
|
|
|
| 346 |
const [isLoading, setIsLoading] = useState(false);
|
| 347 |
const [responseComplete, setResponseComplete] = useState(false);
|
| 348 |
const [statusMessage, setStatusMessage] = useState('');
|
| 349 |
+
const [showMathPreview, setShowMathPreview] = useState(true);
|
| 350 |
const messagesEndRef = useRef<HTMLDivElement>(null);
|
| 351 |
const messagesContainerRef = useRef<HTMLDivElement>(null);
|
| 352 |
const abortControllerRef = useRef<AbortController | null>(null);
|