@pubuduth-aplicy/chat-ui 2.1.87 → 2.1.88
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
Binary file
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
|
-
import { ChevronLeft,
|
|
3
|
-
import { FiArrowLeft } from "react-icons/fi";
|
|
2
|
+
import { ChevronLeft, MessageCircle } from "lucide-react";
|
|
4
3
|
import { useEffect } from "react";
|
|
5
4
|
import MessageInput from "./MessageInput";
|
|
6
5
|
import Messages from "./Messages";
|
|
7
6
|
import useChatUIStore from "../../stores/Zustant";
|
|
8
7
|
import { useChatContext } from "../../providers/ChatProvider";
|
|
9
8
|
import { getChatConfig } from "../../Chat.config";
|
|
9
|
+
import defaultProfilePicture from "../../assets/pngegg.png";
|
|
10
10
|
|
|
11
11
|
const MessageContainer = () => {
|
|
12
12
|
const { userId } = useChatContext();
|
|
@@ -90,13 +90,13 @@ const MessageContainer = () => {
|
|
|
90
90
|
</button>
|
|
91
91
|
{selectedConversation.type === "service" ? (
|
|
92
92
|
<div className="w-10 h-10 rounded-full bg-gray-200 flex items-center justify-center">
|
|
93
|
-
<
|
|
93
|
+
<MessageCircle size={24} className="text-gray-600" />
|
|
94
94
|
</div>
|
|
95
95
|
) : (
|
|
96
96
|
<img
|
|
97
97
|
className="chatMessageContainerInnerImg"
|
|
98
98
|
alt="Profile"
|
|
99
|
-
src={participant?.profilePicture}
|
|
99
|
+
src={participant?.profilePicture || defaultProfilePicture}
|
|
100
100
|
/>
|
|
101
101
|
)}
|
|
102
102
|
<div className="chatMessageContainerOutter">
|
|
@@ -5,6 +5,7 @@ import { useChatContext } from "../../providers/ChatProvider";
|
|
|
5
5
|
import useChatUIStore from "../../stores/Zustant";
|
|
6
6
|
import { ConversationProps } from "../../types/type";
|
|
7
7
|
import { getChatConfig } from "../../Chat.config";
|
|
8
|
+
import defaultProfilePicture from "../../assets/pngegg.png";
|
|
8
9
|
|
|
9
10
|
const Conversation = ({ conversation }: ConversationProps) => {
|
|
10
11
|
const {
|
|
@@ -102,7 +103,7 @@ const Conversation = ({ conversation }: ConversationProps) => {
|
|
|
102
103
|
<>
|
|
103
104
|
<img
|
|
104
105
|
className="w-10 h-10 rounded-full"
|
|
105
|
-
src={participant?.profilePicture}
|
|
106
|
+
src={participant?.profilePicture || defaultProfilePicture}
|
|
106
107
|
alt="User Avatar"
|
|
107
108
|
/>
|
|
108
109
|
<span
|