other updates to clean stuff up

This commit is contained in:
Arjun Patel
2022-02-06 20:10:47 -08:00
parent ce226011d5
commit c34e59e7da
2 changed files with 38 additions and 16 deletions
@@ -9,6 +9,7 @@ import {
FaCheck, FaCheck,
FaAngleRight, FaAngleRight,
FaStream, FaStream,
FaDotCircle,
} from "react-icons/fa"; } from "react-icons/fa";
import { useRecoilValue } from "recoil"; import { useRecoilValue } from "recoil";
import { import {
@@ -74,10 +75,12 @@ export default function ConversationFullRow(props: {
audio.play(); audio.play();
}; };
// todo: const joinLive = () => {
toast("connecting");
};
/** /**
* show actions based on which state it is currently in for this user * show actions based on which state it is currently in for this user
*
*/ */
const currUserAssoc = usersConvosMap.get(props.conversation.id); const currUserAssoc = usersConvosMap.get(props.conversation.id);
@@ -106,7 +109,7 @@ export default function ConversationFullRow(props: {
}`} }`}
/> />
<span className="w-[15rem] flex flex-row items-center"> <span className="flex flex-row items-center">
<span className="w-[5rem]"> <span className="w-[5rem]">
<MasterAvatarGroupWithUserFetch <MasterAvatarGroupWithUserFetch
listOfUserIds={props.conversation.activeMembers} listOfUserIds={props.conversation.activeMembers}
@@ -123,6 +126,35 @@ export default function ConversationFullRow(props: {
</span> </span>
</span> </span>
<span
className="ml-2 flex flex-row items-center
group-hover:visible invisible text-slate-400"
>
<Tooltip title={"Join live."}>
<span
onClick={(e) => {
e.stopPropagation();
joinLive();
}}
className="p-2 rounded-full hover:cursor-pointer hover:bg-slate-200"
>
<FaDotCircle className="ml-auto text-lg text-red-500" />
</span>
</Tooltip>
<Tooltip title={"Play last convo chunk."}>
<span
onClick={(e) => {
e.stopPropagation();
playLastClip();
}}
className="p-2 rounded-full hover:cursor-pointer hover:bg-slate-200"
>
<FaPlay className="ml-auto text-lg text-emerald-500" />
</span>
</Tooltip>
</span>
<span className="text-slate-300 w-[20rem] truncate text-sm"> <span className="text-slate-300 w-[20rem] truncate text-sm">
{props.conversation.tldr} {props.conversation.tldr}
</span> </span>
@@ -140,18 +172,6 @@ export default function ConversationFullRow(props: {
className="ml-auto flex flex-row items-center className="ml-auto flex flex-row items-center
group-hover:visible invisible absolute right-5 text-slate-400" group-hover:visible invisible absolute right-5 text-slate-400"
> >
<Tooltip title={"Play last convo chunk."}>
<span
onClick={(e) => {
e.stopPropagation();
playLastClip();
}}
className="p-2 rounded-full hover:cursor-pointer hover:bg-slate-200"
>
<FaPlay className="ml-auto text-lg text-emerald-500" />
</span>
</Tooltip>
{currConvoMemberState != ConversationMemberState.default && ( {currConvoMemberState != ConversationMemberState.default && (
<Tooltip title={"Inbox"}> <Tooltip title={"Inbox"}>
<span <span
+3 -1
View File
@@ -81,7 +81,9 @@ export default function Me() {
timeout={400} timeout={400}
classNames="slide" classNames="slide"
> >
{fullCleanPageContent} <div className="flex-1 flex flex-col px-20 justify-start items-stretch container mx-auto">
{fullCleanPageContent}
</div>
</CSSTransition> </CSSTransition>
</SwitchTransition> </SwitchTransition>
</div> </div>