-
{electionPart.count}
+
+ {electionPart.count}
);
@@ -45,4 +46,4 @@ const ElectionInfoCard = ({ counts, filterStatus, setFilterStatus }: any) => {
);
};
-export default ElectionInfoCard;
+export default ElectionInfoCard;
\ No newline at end of file
diff --git a/client/app/components/ChatBot/ChatBot.tsx b/client/app/components/ChatBot/ChatBot.tsx
index 7d1f7f9..32bda8f 100644
--- a/client/app/components/ChatBot/ChatBot.tsx
+++ b/client/app/components/ChatBot/ChatBot.tsx
@@ -3,6 +3,7 @@
import React, { useState, useRef, useEffect } from "react";
import { motion, AnimatePresence } from "framer-motion";
import { ArrowUpIcon, ChatBubbleLeftRightIcon } from "@heroicons/react/24/solid";
+import { XMarkIcon } from "@heroicons/react/24/outline"; // Corrected the import for XMarkIcon
interface Message {
content: string;
@@ -49,7 +50,6 @@ const ChatBot: React.FC = () => {
setMessages((prevMessages) => [...prevMessages, reply]);
} catch (error) {
console.error("Error:", error);
- // Add error message in chatbot here
}
};
@@ -72,12 +72,19 @@ const ChatBot: React.FC = () => {
animate={{ opacity: 1, scale: 1, y: 0 }}
exit={{ opacity: 0, scale: 0.95, y: 20 }}
transition={{ duration: 0.2 }}
- className="absolute bottom-16 right-0 w-96 h-[32rem] bg-white rounded-lg shadow-xl overflow-hidden flex flex-col"
+ className="absolute bottom-16 right-0 w-[280px] xs:w-[320px] sm:w-[350px] md:w-[380px] h-[450px] bg-white rounded-lg shadow-xl overflow-hidden flex flex-col"
>
-
- Agora Chatbot
+
+
Agora Chatbot
+
-
+
+
{messages.map((msg, index) => (
{
className={`flex ${msg.role === "assistant" ? "justify-start" : "justify-end"}`}
>
{msg.content}
@@ -99,16 +102,15 @@ const ChatBot: React.FC = () => {
))}
-