Spaces:
Sleeping
Sleeping
Đỗ Hải Nam
commited on
Commit
·
f6ffb2a
1
Parent(s):
e552d95
fix: import all public assets in React components for production compatibility
Browse files
frontend/src/components/MessageList.jsx
CHANGED
|
@@ -9,6 +9,7 @@ import html2canvas from 'html2canvas'
|
|
| 9 |
import { preprocessLaTeX, parseMessageContent } from '../utils/chatUtils'
|
| 10 |
|
| 11 |
import ErrorBoundary from './ErrorBoundary'
|
|
|
|
| 12 |
|
| 13 |
const MessageFooter = ({ role, onCopy, onToggleExpand, isExpanded, isOverflow, copiedId, idx, onExportMD, onExportPDF, onExportLaTeX }) => {
|
| 14 |
const [showMenu, setShowMenu] = useState(false)
|
|
@@ -370,7 +371,7 @@ const MessageList = ({
|
|
| 370 |
<div className="welcome-screen">
|
| 371 |
<div id="tour-chat-interface" className="tour-chat-spotlight"></div>
|
| 372 |
<div className="welcome-icon">
|
| 373 |
-
<img src=
|
| 374 |
<div className="p-4 bg-indigo-100 rounded-full dark:bg-indigo-900/30" style={{ display: 'none' }}>
|
| 375 |
<Bot size={48} className="text-indigo-600 dark:text-indigo-400" />
|
| 376 |
</div>
|
|
|
|
| 9 |
import { preprocessLaTeX, parseMessageContent } from '../utils/chatUtils'
|
| 10 |
|
| 11 |
import ErrorBoundary from './ErrorBoundary'
|
| 12 |
+
import calculusIcon from '../assets/calculus-icon.png'
|
| 13 |
|
| 14 |
const MessageFooter = ({ role, onCopy, onToggleExpand, isExpanded, isOverflow, copiedId, idx, onExportMD, onExportPDF, onExportLaTeX }) => {
|
| 15 |
const [showMenu, setShowMenu] = useState(false)
|
|
|
|
| 371 |
<div className="welcome-screen">
|
| 372 |
<div id="tour-chat-interface" className="tour-chat-spotlight"></div>
|
| 373 |
<div className="welcome-icon">
|
| 374 |
+
<img src={calculusIcon} alt="Icon" onError={(e) => e.target.style.display = 'none'} />
|
| 375 |
<div className="p-4 bg-indigo-100 rounded-full dark:bg-indigo-900/30" style={{ display: 'none' }}>
|
| 376 |
<Bot size={48} className="text-indigo-600 dark:text-indigo-400" />
|
| 377 |
</div>
|