diff --git a/src/components/SearchUser.tsx b/src/components/SearchUser.tsx index 2c7427fe..63b13af4 100644 --- a/src/components/SearchUser.tsx +++ b/src/components/SearchUser.tsx @@ -58,7 +58,10 @@ const SearchUser: FC = ({ closeModal }) => { keyword: currInput }); }; - + const handleSendMsg = () => { + if (!data) return; + navigateTo(`/chat/dm/${data.uid}`); + }; const handleChangeKeyword = (type: Type) => { setType(type); }; @@ -132,9 +135,11 @@ const SearchUser: FC = ({ closeModal }) => { /> {data.name}
- - {t("action.cancel")} - + {!inContact && ( + + {t("send_msg", { ns: "member" })} + + )}