Skip to content

Commit abcb676

Browse files
authored
Merge pull request #386 from reorproject/fix-icon-loading
fix icon loading code
2 parents 02eca8f + 98c2fba commit abcb676

File tree

4 files changed

+3
-5
lines changed

4 files changed

+3
-5
lines changed

public/favicon.ico

-53.9 KB
Binary file not shown.

public/icon.png

268 KB
Loading

public/node.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/components/Chat/ChatMessages.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import { FaRegUserCircle } from 'react-icons/fa'
99
import { LLMConfig } from 'electron/main/electron-store/storeConfig'
1010
import AddContextFiltersModal from './AddContextFiltersModal'
1111
import PromptSuggestion from './ChatPrompts'
12-
1312
import LoadingDots from '@/utils/animations'
1413
import '../../styles/chat.css'
1514
import { Chat, ChatFilters, ReorChatMessage } from './types'
@@ -108,7 +107,7 @@ const ChatMessages: React.FC<ChatMessagesProps> = ({
108107
{message.role === 'user' ? (
109108
<FaRegUserCircle size={22} />
110109
) : (
111-
<img src="/src/assets/reor-logo.svg" style={{ width: '22px', height: '22px' }} alt="ReorImage" />
110+
<img src="icon.png" style={{ width: '22px', height: '22px' }} alt="ReorImage" />
112111
)}
113112
</div>
114113
<div className="w-full flex-col gap-1">
@@ -148,7 +147,7 @@ const ChatMessages: React.FC<ChatMessagesProps> = ({
148147
<div className="relative flex w-full flex-col items-center">
149148
<div className="relative flex size-full flex-col text-center lg:top-10 lg:max-w-2xl">
150149
<div className="flex size-full justify-center">
151-
<img src="/src/assets/reor-logo.svg" style={{ width: '64px', height: '64px' }} alt="ReorImage" />
150+
<img src="icon.png" style={{ width: '64px', height: '64px' }} alt="ReorImage" />
152151
</div>
153152
<h1 className="mb-10 text-[28px] text-gray-300">
154153
Welcome to your AI-powered assistant! Start a conversation with your second brain!
@@ -211,7 +210,7 @@ const ChatMessages: React.FC<ChatMessagesProps> = ({
211210

212211
{loadAnimation && (
213212
<div className="relative left-4 ml-1 mt-4 flex w-full max-w-3xl items-start gap-6">
214-
<img src="/src/assets/reor-logo.svg" style={{ width: '22px', height: '22px' }} alt="ReorImage" />
213+
<img src="icon.png" style={{ width: '22px', height: '22px' }} alt="ReorImage" />
215214
<LoadingDots />
216215
</div>
217216
)}

0 commit comments

Comments
 (0)