{
+ loginWithEmail(user.email);
+ }}
+ >
+
+ {isLoggedIn && }
+
+ }>
+ } />
+ {/* TODO: Sepreate searching and foundUser into different routes */}
+ } />
+ } />
+ } />
+ } />
+
+
+ : } />
+ } />
+
+
+
+ );
+}
+
+export default App;
diff --git a/client/src/components/Chat/DropDownOption.jsx b/client/src/components/Chat/DropDownOption.jsx
index a05b39c8..ff3aea6b 100644
--- a/client/src/components/Chat/DropDownOption.jsx
+++ b/client/src/components/Chat/DropDownOption.jsx
@@ -11,14 +11,10 @@ import { useApp } from 'src/context/AppContext';
import { socket } from 'src/lib/socketConnection';
import useChatUtils from 'src/lib/chatSocket';
-import useCryptoKeys from 'src/hooks/useCryptoKeys';
-const DropDownOptions =({ id, isSender, inputRef, cancelEdit, setEditing, setReplyId }) => {
-
+const DropDownOptions = ({ id, isSender, inputRef, cancelEdit, setEditing, setReplyId }) => {
const { app } = useApp();
- const { importedPrivateKey, cryptoKey
- } =useCryptoKeys(app.currentChatId);
const { messages: state, updateMessage, removeMessage } = useChat();
const { getMessage, messageExists, handleCopyToClipBoard } = chatHelper(state, app);
const { deleteMessage } = useChatUtils(socket);
@@ -91,7 +87,7 @@ const DropDownOptions =({ id, isSender, inputRef, cancelEdit, setEditing, setRep
>