handle escape and introducing shortcuts slowly

This commit is contained in:
talksik
2022-06-20 11:42:03 -05:00
parent 0c4e906f6b
commit 29af3cf5de
3 changed files with 14 additions and 3 deletions
+2 -1
View File
@@ -171,7 +171,7 @@ function OverlayConversation({
masterConversation: MasterConversation;
isSelected?: boolean;
}) {
const { selectConversation } = useConversations();
const { selectConversation, handleEscape } = useConversations();
const handleSelectConversation = useCallback(() => {
selectConversation(masterConversation._id.toString(), false);
@@ -271,6 +271,7 @@ function OverlayConversation({
color: 'GrayText',
}}
size="small"
onClick={handleEscape}
>
<FiX />
</IconButton>