From 6e75db489a38434088fe20d36c9d705aa08de539 Mon Sep 17 00:00:00 2001 From: Najmul Islam Naeem <83476865+naeemcse@users.noreply.github.com> Date: Thu, 13 Jun 2024 10:35:17 +0600 Subject: [PATCH] Update UserListItem.js //const { user } = ChatState(); Actually this user is account owner, but we need all user those are come from the search result and it was props from parent components. so we will just distracture user. --- frontend/src/components/userAvatar/UserListItem.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/frontend/src/components/userAvatar/UserListItem.js b/frontend/src/components/userAvatar/UserListItem.js index 0d1179c..19f69ce 100644 --- a/frontend/src/components/userAvatar/UserListItem.js +++ b/frontend/src/components/userAvatar/UserListItem.js @@ -2,9 +2,10 @@ import { Avatar } from "@chakra-ui/avatar"; import { Box, Text } from "@chakra-ui/layout"; import { ChatState } from "../../Context/ChatProvider"; -const UserListItem = ({ handleFunction }) => { - const { user } = ChatState(); - +const UserListItem = ({ handleFunction,user }) => { + //const { user } = ChatState(); +// Actually this user is account owner, but we need all user those are come from search result and it was props from parent components. + // so we will just distracture user return (