diff --git a/frontend/components/chat/chatInputBox.tsx b/frontend/components/chat/chatInputBox.tsx index bb0c3b6..91621c8 100644 --- a/frontend/components/chat/chatInputBox.tsx +++ b/frontend/components/chat/chatInputBox.tsx @@ -68,7 +68,7 @@ const ChatInputBox: React.FC = ({ socketRef }) => { onClick={handleSendClick} disabled={isTimeout} className={`absolute right-2 top-1/2 transform -translate-y-1/2 pr-5 ${ - isTimeout ? "" : "bg-blue-500" + isTimeout ? "bg-blue-500" : "" } text-white rounded-full p-2 cursor-pointer`} > item.toUpperCase()); const isShown = router.pathname === "/"; const [projects, setProjects] = useState([]); + const [isHoveringChatBot,setIsHoveringChatBot]=useState(false); useEffect(() => { async function fetchProjectsData() { @@ -97,13 +97,16 @@ export default function Box({ channel }: BoxProps) { -
+
setIsHoveringChatBot(true)} + onMouseLeave={() => setIsHoveringChatBot(false)}>
- JOIN {finalArr[1]} CHAT + + {isHoveringChatBot ? "CHATBOT COMING SOON":`JOIN ${finalArr[1]} CHAT` }
diff --git a/frontend/next-env.d.ts b/frontend/next-env.d.ts index 4f11a03..a4a7b3f 100644 --- a/frontend/next-env.d.ts +++ b/frontend/next-env.d.ts @@ -2,4 +2,4 @@ /// // NOTE: This file should not be edited -// see https://nextjs.org/docs/basic-features/typescript for more information. +// see https://nextjs.org/docs/pages/building-your-application/configuring/typescript for more information. diff --git a/frontend/pages/chat_bot.tsx b/frontend/pages/chat_bot.tsx index 0798206..45bee3d 100644 --- a/frontend/pages/chat_bot.tsx +++ b/frontend/pages/chat_bot.tsx @@ -47,6 +47,12 @@ export default function Home() { } }, []); + return( + <> +

Not Found 404 !

+ + ); + return ( <>
diff --git a/frontend/pages/index.tsx b/frontend/pages/index.tsx index 77ea60b..77cccda 100644 --- a/frontend/pages/index.tsx +++ b/frontend/pages/index.tsx @@ -10,6 +10,7 @@ export default function Home() { const [isModalOpen, setIsModalOpen] = useState(false); const [isChatBotModalOpen, setISChatBotModalOpen] = useState(false); const [redirect, setRedirect] = useState(""); + const [isHoveringChatBot,setIsHoveringChatBot]=useState(false); const openModal = (redirect:string) => { setIsModalOpen(true); @@ -17,7 +18,8 @@ export default function Home() { }; const openChatBotModal = () => { - setISChatBotModalOpen(true); + // setISChatBotModalOpen(true); + window.open("/404","_self"); }; const closeModal = () => { @@ -74,10 +76,12 @@ export default function Home() {
setIsHoveringChatBot(true)} + onMouseLeave={() => setIsHoveringChatBot(false)} >

{"chat - TALK TO OUR CHATBOT + {isHoveringChatBot ? "COMING SOON" : "TALK TO OUR CHATBOT"}

window.open("/404", "_blank")} + >

{"slack