From 6262b3ff8304da58408d6e1901730331271ba104 Mon Sep 17 00:00:00 2001 From: Patrick Fic Date: Thu, 8 Jun 2023 16:00:47 -0700 Subject: [PATCH] Revert changes for IO-2311 IO-2317. --- .../chat-conversation-title.component.jsx | 23 ++----------------- .../chat-popup/chat-popup.component.jsx | 2 +- .../jobs-convert-button.component.jsx | 7 +----- 3 files changed, 4 insertions(+), 28 deletions(-) diff --git a/client/src/components/chat-conversation-title/chat-conversation-title.component.jsx b/client/src/components/chat-conversation-title/chat-conversation-title.component.jsx index 9fb9776a3..1503bf46f 100644 --- a/client/src/components/chat-conversation-title/chat-conversation-title.component.jsx +++ b/client/src/components/chat-conversation-title/chat-conversation-title.component.jsx @@ -1,31 +1,14 @@ -import { Space, Button, Col } from "antd"; +import { Space } from "antd"; import React from "react"; import PhoneNumberFormatter from "../../utils/PhoneFormatter"; import ChatArchiveButton from "../chat-archive-button/chat-archive-button.component"; import ChatConversationTitleTags from "../chat-conversation-title-tags/chat-conversation-title-tags.component"; import ChatLabelComponent from "../chat-label/chat-label.component"; import ChatTagRoContainer from "../chat-tag-ro/chat-tag-ro.container"; -import { connect } from "react-redux"; -import { setSelectedConversation } from "../../redux/messaging/messaging.actions"; -import { LeftOutlined } from "@ant-design/icons"; -const mapDispatchToProps = (dispatch) => ({ - setSelectedConversation: (conversationId) => - dispatch(setSelectedConversation(conversationId)), -}); - -function ChatConversationTitle({ conversation, setSelectedConversation }) { +export default function ChatConversationTitle({ conversation }) { return ( - - - {conversation && conversation.phone_num} @@ -40,5 +23,3 @@ function ChatConversationTitle({ conversation, setSelectedConversation }) { ); } - -export default connect(null, mapDispatchToProps)(ChatConversationTitle); diff --git a/client/src/components/chat-popup/chat-popup.component.jsx b/client/src/components/chat-popup/chat-popup.component.jsx index 58065cd76..6d582bdab 100644 --- a/client/src/components/chat-popup/chat-popup.component.jsx +++ b/client/src/components/chat-popup/chat-popup.component.jsx @@ -112,7 +112,7 @@ export function ChatPopupComponent({ /> - + {loading ? ( ) : ( diff --git a/client/src/components/jobs-convert-button/jobs-convert-button.component.jsx b/client/src/components/jobs-convert-button/jobs-convert-button.component.jsx index 6e469cb57..b48deb3b5 100644 --- a/client/src/components/jobs-convert-button/jobs-convert-button.component.jsx +++ b/client/src/components/jobs-convert-button/jobs-convert-button.component.jsx @@ -108,12 +108,7 @@ export function JobsConvertButton({ }, ]} > - {bodyshop.md_ins_cos.map((s, i) => ( {s.name}