From 71adf3a745375d669ce34f7fab544456f9f3885f Mon Sep 17 00:00:00 2001 From: Arjun Patel Date: Fri, 11 Feb 2022 17:56:23 -0800 Subject: [PATCH] Update ViewConvo.tsx --- .../components/MainTabsOrPages/ViewConvo.tsx | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/packages/web/components/MainTabsOrPages/ViewConvo.tsx b/packages/web/components/MainTabsOrPages/ViewConvo.tsx index 09613d0..cce51bf 100644 --- a/packages/web/components/MainTabsOrPages/ViewConvo.tsx +++ b/packages/web/components/MainTabsOrPages/ViewConvo.tsx @@ -88,12 +88,6 @@ const testDrawerItems: { const AUDIO_CLIP_FETCH_LIMIT = 50; -enum ConvoModal { - na = "na", - editTldr = "editTldr", - adminEdit = "adminEdit", -} - export default function ViewConvo(props: { conversationId: string }) { const { currUser } = useAuth(); @@ -101,10 +95,6 @@ export default function ViewConvo(props: { conversationId: string }) { const endOfTimeline = useRef(null); - const [currentConvoModal, setCurrConvoModal] = useState( - ConvoModal.na - ); - const router = useRouter(); // auth if do not have this conversation in react cache, then we are not authorized @@ -192,19 +182,11 @@ export default function ViewConvo(props: { conversationId: string }) { } }; - const handleCloseModal = () => { - setCurrConvoModal(ConvoModal.na); - }; - // to allow not having commands while editing the input configure({ ignoreTags: ["input", "select", "textarea"], }); - const handleEditTldr = () => { - console.log("updating tldr with modal"); - }; - const [editTldrMode, setEditTldrMode] = useState(false); const [newTldr, setNewTldr] = useState(""); const [isSubmitting, setIsSubmitting] = useState(false);