Skip to content

Commit

Permalink
send btn
Browse files Browse the repository at this point in the history
  • Loading branch information
Shahan-nub committed Oct 27, 2024
1 parent 2196a5e commit 5196c80
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/Chat/ChatInput.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import { selectMenu } from "@/lib/features/menuSlice";
import { ref, uploadBytes, getDownloadURL } from "firebase/storage";
import { TbLoader2 } from "react-icons/tb";
import EmojiPicker from "emoji-picker-react";
import { IoSend } from "react-icons/io5";



Expand Down Expand Up @@ -221,13 +222,13 @@ export default function ChatInput({ handleMessageUpdate }) {
: "text-slate-200 hover:text-white"
}`}
></FaFileUpload>
<MdOutlineGif className="text-slate-200 mx-1 md:mx-2 text-lg lg:text-3xl cursor-pointer hover:text-white"></MdOutlineGif>
<FaSmile onClick={() => setShowEmoji(!showEmoji)} className="text-slate-200 mx-1 md:mx-2 text-base lg:text-lg cursor-pointer hover:text-white"></FaSmile>
{showEmoji && (
<div className="absolute bottom-0 left-[10%]">
<EmojiPicker onEmojiClick={onEmojiClick}></EmojiPicker>
</div>
)}
<IoSend onClick={handleFormSubmit} className={`text-slate-200 mx-1 md:mx-2 lg:text-lg cursor-pointer hover:text-white ${chatInput.length > 0 ? "text-blue-500" : ""}`}/>
</div>
</div>
</>
Expand Down

0 comments on commit 5196c80

Please sign in to comment.