Update ViewConvo.tsx
This commit is contained in:
@@ -255,6 +255,19 @@ export default function ViewConvo(props: { conversationId: string }) {
|
|||||||
</span>
|
</span>
|
||||||
|
|
||||||
<span className="flex flex-row items-center space-x-3">
|
<span className="flex flex-row items-center space-x-3">
|
||||||
|
{userConvoAssoc?.state != ConversationMemberState.default && (
|
||||||
|
<button
|
||||||
|
onClick={() =>
|
||||||
|
handleOrganizeConversation(ConversationMemberState.default)
|
||||||
|
}
|
||||||
|
className="rounded-lg p-2 border flex flex-row items-center space-x-2
|
||||||
|
text-slate-400 text-xs hover:bg-slate-50"
|
||||||
|
>
|
||||||
|
<FaStream />
|
||||||
|
<span>Inbox</span>
|
||||||
|
</button>
|
||||||
|
)}
|
||||||
|
|
||||||
{userConvoAssoc?.state != ConversationMemberState.later && (
|
{userConvoAssoc?.state != ConversationMemberState.later && (
|
||||||
<button
|
<button
|
||||||
onClick={() =>
|
onClick={() =>
|
||||||
@@ -281,18 +294,7 @@ export default function ViewConvo(props: { conversationId: string }) {
|
|||||||
</button>
|
</button>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{userConvoAssoc?.state == ConversationMemberState.done ? (
|
{userConvoAssoc?.state != ConversationMemberState.done && (
|
||||||
<button
|
|
||||||
onClick={() =>
|
|
||||||
handleOrganizeConversation(ConversationMemberState.default)
|
|
||||||
}
|
|
||||||
className="rounded-lg p-2 border flex flex-row items-center space-x-2
|
|
||||||
text-slate-400 text-xs hover:bg-slate-50"
|
|
||||||
>
|
|
||||||
<FaStream />
|
|
||||||
<span>Inbox</span>
|
|
||||||
</button>
|
|
||||||
) : (
|
|
||||||
<button
|
<button
|
||||||
onClick={() =>
|
onClick={() =>
|
||||||
handleOrganizeConversation(ConversationMemberState.done)
|
handleOrganizeConversation(ConversationMemberState.done)
|
||||||
|
|||||||
Reference in New Issue
Block a user