Update ViewConvo.tsx

This commit is contained in:
Arjun Patel
2022-02-11 17:56:23 -08:00
parent 78bb94abc8
commit 71adf3a745
@@ -88,12 +88,6 @@ const testDrawerItems: {
const AUDIO_CLIP_FETCH_LIMIT = 50; const AUDIO_CLIP_FETCH_LIMIT = 50;
enum ConvoModal {
na = "na",
editTldr = "editTldr",
adminEdit = "adminEdit",
}
export default function ViewConvo(props: { conversationId: string }) { export default function ViewConvo(props: { conversationId: string }) {
const { currUser } = useAuth(); const { currUser } = useAuth();
@@ -101,10 +95,6 @@ export default function ViewConvo(props: { conversationId: string }) {
const endOfTimeline = useRef<HTMLSpanElement>(null); const endOfTimeline = useRef<HTMLSpanElement>(null);
const [currentConvoModal, setCurrConvoModal] = useState<ConvoModal>(
ConvoModal.na
);
const router = useRouter(); const router = useRouter();
// auth if do not have this conversation in react cache, then we are not authorized // 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 // to allow not having commands while editing the input
configure({ configure({
ignoreTags: ["input", "select", "textarea"], ignoreTags: ["input", "select", "textarea"],
}); });
const handleEditTldr = () => {
console.log("updating tldr with modal");
};
const [editTldrMode, setEditTldrMode] = useState<boolean>(false); const [editTldrMode, setEditTldrMode] = useState<boolean>(false);
const [newTldr, setNewTldr] = useState<string>(""); const [newTldr, setNewTldr] = useState<string>("");
const [isSubmitting, setIsSubmitting] = useState<boolean>(false); const [isSubmitting, setIsSubmitting] = useState<boolean>(false);