Skip to content

Commit

Permalink
fix: destructure props
Browse files Browse the repository at this point in the history
  • Loading branch information
nada-deriv committed May 13, 2024
1 parent b4dbae7 commit bc869d6
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions src/pages/orders/screens/OrdersChatSection/OrdersChatSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,9 @@ type TOrdersChatSectionProps = {
userId: string;
};

const OrdersChatSection = ({
activeChatChannel,
isChatLoading,
isError,
isInactive,
messages,
onReturn,
otherUserDetails,
refreshChat,
sendFile,
sendMessage,
userId,
}: TOrdersChatSectionProps) => {
const OrdersChatSection = ({ isInactive, onReturn, otherUserDetails, ...sendBirdData }: TOrdersChatSectionProps) => {
const { activeChatChannel, isChatLoading, isError, messages, refreshChat, sendFile, sendMessage, userId } =
sendBirdData;
const { isMobile } = useDevice();
const { is_online: isOnline, last_online_time: lastOnlineTime, name } = otherUserDetails ?? {};
const isChannelClosed = isInactive || !!activeChatChannel?.isFrozen;
Expand Down

0 comments on commit bc869d6

Please sign in to comment.